Can the value if a list collector be used in a workflow switch activity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 11:39 AM
I have a request for add a list collector to the new hire form that will contain a list of applications. Based on which application is selected there will be separate task in the workflow.
My question is, can the value from a List Collector be used with a Workflow Switch Activity?
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 11:56 AM
Probably not well if at all due to the number of possible results, but you can give it a try, customizing the conditions to match a certain string of sys_ids or 'contains'. Be sure to use an else condition so that the workflow continues in the event none of the certain sys_ids/combinations are included. If the Switch activity doesn't work, you can do the same with a run script activity which includes activity.result = '1' for example, then add a condition to handle the path when activity.result == '1'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 11:52 AM
I have a new Hire workflow that has a lot of moving parts. I actually have an Approval workflow, a Task Sub-workflow and an Additional Application sub workflow. I'm attempting to use the Switch function for the Additional Applications and what I have happening is the initial approval workflow is working fine, it will trigger the Task sub-workflow without any issues, the Additional application workflow hangs at the switch activity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 02:42 PM
On the executing workflow that is stuck, view the context via the related link on the RITM. Does the Switch activity show as executing or finished. If finished, mouse-over the Switch activity to see the result - this is the path it is looking for. There is a character limit on activity results, so whatever is shown here is what is being evaluated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 04:22 PM
you can, but few times i had to use g__scratchpad (NOTE IS CALLED WITH DIFF NAME HERE) and use script activity to iinitze and assgn val. Then you can access it from the subflow.