cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to lock a diagram with a workflow action

aglazunov
New Contributor

We create a validation workflow that locks the validated object until the workflow terminates, so that other users couldnt change an object during validation. But we also want to lock diagrams that describe the object. How to do that?

We tried to set a writing access area that prevents modification.

We have several Writing access areas in the repository, but if the user executes a workflow action he doesn't have rights to set a higher writing access area than his own. Can we run a macro as another user or as another writing access area?

2 Replies

hsoegaard
MEGA Partner
MEGA Partner

We have added the LockPropagate method to clients workflows, but that only locks the objects and not the diagrams. In most cases there is no need to lock the diagram, since you will not be able to remove or add object to diagram when the owner object is locked (except for notes etc.). You can re-arrange objects on the diagram, which in certain situations can be good - maybe you need to re-align some sequence flows etc. If you need to lock the diagram, either change the standard mechanism to include the diagram, or write a specific macro just locks the diagram and the macro as an action on your transition in the workflow.

imran_khatyan
MEGA Partner
MEGA Partner

you could always use:

subject.CallMethod("~RYYJI)KPGj35[LockPropagate]")