Activities represent the action or logic for a specific process within a workflow and are comprised of properties and methods that perform the action of a workflow while maintaining the state of that workflow. Think of activities as reusable methods that we create once and use in different places.
Activities expose easy-to-use properties.
Properties can be inputs or outputs.
Type of Activities
Form Activities
Operation Activities
Bubble Activities
Confirm Activities
System Code Activities
System Parallel Activities
System If Else Activities
Let's understand about the activities with an example. Here we have a workflow with an activity placed on it, Edit Multi Form.Look at the below image on the left side. and the image on the right side see the code written within that activity.
Info |
---|
The color of the Activity code shape is red. |
On the first form (Select Options), I have got option for selecting the different accounts for the editing purpose like the AD account, SAP account, and so forth. Based on this selection, I can edit the account, so I have written all this logic in inside the Activity (Edit Account Multi Form). If you drill down, we determine the account type and perform these actions accordingly. If I hadn't written all this logic inside this activity, I would have had to include it in my workflow, which would have made it hard to read.
So, if in the future there comes a requirement to add one more system, I will open this activity and add the system here, and all the workflows using this Activity will gain the ability to edit that system.