05-20-2017 04:47 AM
Hello,
I have a workflow like this:
Start ---> Review --(approve)--> Task1 ---> End
Review --(reject)--> Task2 ---> End
In the Review task, I have a mandatory association field which is require the value of assignee passing to Task1 when approve, but this value is not useful for Task2 and it is no reason for user to input when it is going to Task2 flow when reject.
How can I continue the flow if user is reject without input the mandatory association field?
Thanks!
Following is the snippet of the model:
<associations>
<association name="mandy:supervisor">
<title>supervisor</title>
<source>
<mandatory>true</mandatory>
<many>false</many>
</source>
<target>
<class>cmerson</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
BR,
Mandy
05-21-2017 09:32 PM
Hello, Anyone know or can give some idea about this issue?
I am really stuck on this case, any advise are highly appreciated
Thanks!!!
BR,
Mandy
05-22-2017 01:29 PM
Mandy,
This doesnt look like a process servies/activiti code excerpt.
If you are using the embedded version of activiti (embedded in ECM) then you should open the question on the ECM forum.
As for how to handle this at a conceptual level.
The fact that the reviewer is only mandatory if you choose a particular outcome means it really isnt mandatory.
I would not set the assignee field to be mandatory, rather I would only enable the review button if a user is selected.
That way, only reject can be selected unless a reviewer is selected.
Hope this helps,
Greg
05-22-2017 09:33 PM
Great thanks to Harley,
that's approach what I am looking for...
May I know how can I do this by enable the review button if a user is selected?
In case, I am using alfresco sdk2.0 by eclipse for my development on workflow,
Any reference that can let me follow or example to let me know more about this?
Many thanks for your kindly advise!!!
BR,
Mandy
09-26-2017 12:32 PM
hello, anyone know how to check if the assignee has assigned value before clicking the approve button?
Thanks so much!
BR,
Mandy
Explore our Alfresco products with the links below. Use labels to filter content by product module.