Is it possible to have a Transition only "show" based on a condition or attribute

Is it possible to have a Transition only "show" based on a condition or attribute. If i create multiple transitions from a state (from what i can see are only controlled by user/group permissions) but the drawing has a particular part type set and should only go through one transition, however a user is defined in two separate groups (so with the user permission method) he/she has two options available - it would be nice to limit what they see by condition without creating separte workflows ... etc.

I know the transition has the ability to check conditions, but that is only after the user selects it ...

SolidworksSolidworks Pdm enterprise Pdm
Answers 5
SF
SF 2010-02-23 Best Answer

Hi Patrick,

Is it possible to design the workflow so that the drawings that won't meet the transition condition never reach the source state?  If they had a separate branch, it would be easier to handle the conditions.  The transition permissions are such that the user inherits the union of all groups "permit" and intersection of the workflow and folder permissions.  If that includes the transition in question than it will "show" as a change state option for the user.

Regards,

Hugh

SF
SF 2010-02-23
Have you considered splitting the groups up in to several?
PP
PP 2010-02-24

The groups are separate ...

here's a little more detail of what i am trying to achieve ... Right now I have 5 different workflows that are handling different types of information, however they contain common components that are duplicated in every one of them (ie group/department approval). What I am trying to do is this - create the common tasks/workflows and plug them in as needed into the 5 main flows. So if a group/department makes internal changes - I then can update their section once instead of 5 times. Now to take it a step further, it the transitions had to the ability to only show only when the conditions are met, then i could reduce the five main flows to possibly one.
SF
SF 2010-02-24

You could set up a workflow loop that includes separate transitions for each group's approval, and each group only with permission to its own transition.  Each transition could then set its own approval variable.  Then, you could have automatic transitions from the target state that check whether or not all approval variables have been set.

There are also a couple of out-of-box parallel approval examples for workflow on the KB - see S-014655 and S-044013.

We (CAPINC) have also developed an addin to provide dynamic approvals that accomplishes this with a single loop.

SF
SF 2012-08-27

Could you just use the same name for all five transitions and let the conditions determine which transition is used?  The user will only see one transition this way.  I've done this for similar reasons.  For example, we have a different workflow for the first revision than each subsequent revision.  Both transitions have the same name.  The conditions on the transition determine which workflow is used.  The users don't even know there are two different flows.