startProcessLink() is not creating another instance (Sub Process Model), but it assigns tasks.
My Requirement is, I have a Card/Button which has startProcessLink(), once clicked I started a Process Model which has Form1 with Submit button in it.
Once Submit is clicked, that should create/open another Sub Process Model which has another Form2 in it. It navigates to Sub Process Model, but assign the form as a task and re-directing back to my original page (Action Completed).
How can I navigate to another Sub Process which has another form.?
Discussion posts and replies are publicly visible
Is the third screen shot (the details of the Assignment) from the run-time? Because it looks like you haven't assigned anyone to the Task. If you want the same person who completes the First Form to immediately be presented with the Second Form then you'll need to assign them. Easiest would be to assign to pp!initiator.
Yeah sorry for the Confusion Stewart Burchell.The Process model has completed as per the timer event. So that the reason, the assignee name is missing there.
But my question is why it is assigning as task instead of opening the Form?
How can it present it to you if there's no Assignee?
The Screenshot which I share earlier was timed out. And I couldn't able to show the Assignee name because of the timer event which competes the Process Model task.
Is this fine Stewart Burchell?
Ok, yes that looks ok to me. Is that the same User that started the parent process and was assigned the first form?
Yes Stewart Burchell. Same User who started the Process Model.
pp!initiator.
Ok, I see the issue with your very first screen-shot - if you look at the icon displayed on the Sub-Process node you'll see it is telling you that the call is being made asynchronously. Look here for the difference:
..but then in your subsequent screenshots it does appear to be called synchronously.
Were your latter screenshots taken when debugging? And your first taken from an instance started via a SAIL form or a Record Action or some other application initiation point? I'm wondering if you haven't published the latest version of your process model (note only the latest published version will be run when triggered from within an application as an end-user, but when you start in debug mode it'll be the latest saved version, even if not published)
Yes Stewart Burchell
May be I'm trying with different combinations. But I'm seeing the same result.
Please find the below Screenshot which is the same I shared in previous reply.
And your sub-process? Has that been published? If so, can you check that it is fully chained from the start node to the User Input Task. Also check how the Assignment is being made in the sub-process.
Yes, Sub-process is published and have activity chaining across all nodes.
Have you configured your sub-process to enable activity chaining into its nodes?