How can I skip the integrity checking of mandatory field in the workflow?

cancel
Showing results for 
Search instead for 
Did you mean: 
miraclesuki
Member II

How can I skip the integrity checking of mandatory field in the workflow?

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>cmSmiley Tongueerson</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>

BR,

Mandy

4 Replies
miraclesuki
Member II

Re: How can I skip the integrity checking of mandatory field in the workflow?

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

gdharley
Intermediate

Re: How can I skip the integrity checking of mandatory field in the workflow?

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

miraclesuki
Member II

Re: How can I skip the integrity checking of mandatory field in the workflow?

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

miraclesuki
Member II

Re: How can I skip the integrity checking of mandatory field in the workflow?

hello, anyone know how to check if the assignee has assigned value before clicking the approve button?

Thanks so much!

BR,

Mandy