Home > Forum > Actions > [solved] Child flow move parent flow by path depending from current step

[solved] Child flow move parent flow by path depending from current step
0

Move parent flow by path depending from current step.

I miss something ... I try to do it reading this:
https://community.webcon.com/forum/thread/900
and this:
https://community.webcon.com/posts/post/cyclical-actions/106/18
....
I have configuration where:
Parent (main flow) can "flow" ... independent from child.
but if child is finish then I would like to move Parent by path "save" ... but path save is different depending from step ..
what ever I put in Data .. then I have error ...
I don't understand that config window....

MVP
In reply to: Karol Częczek

Hi,
if you want to move the main workflow then :

where wfd_id = {wfd_wfdid}

Regards

Hi,
I'll add to this, that you could also consider using that query to get the path ID instead of pointing out each step.

SELECT
PATH_ID,
-- WFD_ID,
-- STP_ID,
-- STP_Name,
-- PATH_Name
FROM
WFElements JOIN
WFSteps ON STP_ID = WFD_STPID JOIN
WFAvaiblePaths ON PATH_STPID = STP_ID
WHERE
PATH_Name = 'Zapisz' AND
WFD_ID = '{WFD_WFDID}'

WFD_WFDID is saved to child instance, when you are starting a workflow as subworkflow (* https://docs.webcon.com/docs/2024R1/Studio/Action/Workflow/StartWorkFlow/#workflow-start-mode) or
when you pass Parent workflow instance ID when using Hyperlink start element (* https://community.webcon.com/posts/post/the-hyperlink-action/65/3)

In case of new steps with save path, this won't require any changes, but you are trading it for possible errors in case of changing name of the path.