- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2020 04:15 AM
Hi all,
i have a situation where I should trigger FLOW for RITM within another RITM's flow.
i have both flows created, when testing they both works.
First flow runs correctly without errors, it gives positive feedback on creating second RITM, it remains correctly in Waiting state.
new ritms gets created, it has the FLOW associated but it never gets triggered.
I'm also aware of Business Rule 'Start FlowDesigner Flow' - but what comes on it triggering anything, i'm not positive, as the first RITM is not in current.stage=='request_approved' - because we don't even have that stage.
default value for stage is waiting_for_approval.
Therefore i'm quite positive that triggering is happening elsewhere, anyone ?
Thanks,
Jake
Solved! Go to Solution.
- Labels:
-
flow designer
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2020 12:47 AM
Just to let you know, this is possible by using the business rule to trigger wanted flow.
Copy the code from Flow's Code Snippet (to use the internal name of the flow)
then run command:
var inputs = {};
inputs['table_name'] = 'Table Name';
inputs['request_item'] = current; // GlideRecord of table: sc_req_item
// Start Asynchronously: Uncomment to run in background.
sn_fd.FlowAPI.startFlow('global.[internal name of flow]', inputs);
// Execute Synchronously: Run in foreground.
sn_fd.FlowAPI.executeFlow('global.[internal name of flow]', inputs);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2020 11:46 PM
while trying, i encounter into error because there some problem on ordering. (Subflow cannot find records JUST created by main flow)
still, subflow doesn't run parallel eg. its own phase, it has approval and will be completed in any case in different time.
Main flow should be able to pass regardless of subflows and that is the thing needed here, there can be multiple RITMS/subflows created from main flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2020 05:46 AM
Hi Jake,
Ankur is right.
You should create a subflow & call it in your Flow.
Thanks
Sudhanshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2020 01:47 AM
So the subflow would be ONLY option here ? Cant do it because original flow should be run regardless of new RITM and it's stages - the second one isn't really related anymore when created...
I like the flow and designer but there just is too many flaws which creates annoyance and delays...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-03-2020 12:47 AM
Just to let you know, this is possible by using the business rule to trigger wanted flow.
Copy the code from Flow's Code Snippet (to use the internal name of the flow)
then run command:
var inputs = {};
inputs['table_name'] = 'Table Name';
inputs['request_item'] = current; // GlideRecord of table: sc_req_item
// Start Asynchronously: Uncomment to run in background.
sn_fd.FlowAPI.startFlow('global.[internal name of flow]', inputs);
// Execute Synchronously: Run in foreground.
sn_fd.FlowAPI.executeFlow('global.[internal name of flow]', inputs);