Skip to main content

Workflowbody

Properties

NameTypeDescriptionNotes
namestrThe name of the workflow[optional]
ownerWorkflowbodyOwner[optional]
descriptionstrDescription of what the workflow accomplishes[optional]
definitionWorkflowdefinition[optional]
enabledboolEnable or disable the workflow. Workflows cannot be created in an enabled state.[optional] [default to False]
triggerWorkflowtrigger[optional]
}

Example

from sailpoint.workflows.models.workflowbody import Workflowbody

workflowbody = Workflowbody(
name='Send Email',
owner=sailpoint.workflows.models.workflowbody_owner.workflowbody_owner(
type = 'IDENTITY',
id = '2c91808568c529c60168cca6f90c1313',
name = 'William Wilson', ),
description='Send an email to the identity who's attributes changed.',
definition=sailpoint.workflows.models.workflowdefinition.workflowdefinition(
start = 'Send Email Test',
steps = {"Send Email":{"actionId":"sp:send-email","attributes":{"body":"This is a test","from":"sailpoint@sailpoint.com","recipientId.$":"$.identity.id","subject":"test"},"nextStep":"success","selectResult":null,"type":"ACTION"},"success":{"type":"success"}}, ),
enabled=False,
trigger=sailpoint.workflows.models.workflowtrigger.workflowtrigger(
type = 'EVENT',
display_name = '',
attributes = sailpoint.workflows.models.attributes.attributes(), )
)

[Back to top]