Above is a workflow diagram, here I have taken a start form with a people field to set assignee for check stock on start event.I'm using a inclusive gateway with condition whether assignee is empty or not, hence if assignee is not empty token moves to the check stock. But the scenario could be like assignee is not provided on start event and in such case I want to set a process variable with " unassigned" and afterwards want to set assignee for check stock, Is there any why I achieve this?
Thanks Greg, you are right I can check the assignee variable if it is empty or not, but to perform a user task assignee is must.
In my scenario I need to start a process either by setting the assignee or without it, apart from that I need to maintain a process variable named 'status' as 'unassigned' in case when assignee is not provided which i can do in script task. I'm stuck at the point when no assignee is provided during start event and I want to move to 'check stock' User task only if assignee is provided. So let say if I don't provide the assignee during start event ,at inclusive gate i can check for the assignee field if it is not present I pass the flow to script task,At this point I have to hold on to a state until i get the assignee before moving to check stock. I don't find a way to get assignee at this point because no task is assigned to any user then how should i get the assignee field?
Appreciate your help Greg , Thank you so much, I'll try it.
I guess In this case when no assignee is provided I have to set it through listener you mean so there is no meaning to maintain status as 'unassigned' since in both way it will get to check stock user task and I have to set the status to assigned.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.