Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #1 

I remember seeing the answer to this somewhere on the forums - but I'm unable to locate it now :smileysad:

 

How do I know in code, if I'm on a stage or action . Basically I have something I need to conditionally display at a stage but not at anaction.

 

Thanks

0
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #2 
One workaround i can think of is using a checkbox variable - set it true on "when action started" and false on "when action completed" and use that to drive visibility. Would this work or is there a way to do this using something like Stage.Name or Todo list "
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #3 
It is much easier than that. We have a form segment for each condition, in a an action or at a stage, in our Library. You will be told by less knowledgeable people that the action name can be used, but this is NOT the case. If any user is in an action, not just the current user, that variable will be filled. It is even possible to leave this variable filled by closing the browser window for an action.

%User.Form<>"" for when the Folder is in an action
%User.Form="" for when the Folder is at a stage

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #4 
Thanks Jerome...so let me see if I understood it correctly.

I can directly use %User.Form like you mentioned? Or do I have to evaluate this condition inside a form segment? 
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #5 
Just use it directly.

I use it in a form segment in a library because it may not work in the future. If it does change, I can change it once and it fixes it everywhere.

Just the way I design things because I am lazy. It is a shame Metatsorm do not get this and promote this. They always bang off individual hard-coded scripts for everything. Maintaining that would be hell.

In version 9 I have changed this to a function as it makes it slightly more obvious. I still have the form segments, though, as they are easier to throw on a form and use.

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
praxkan

Veteran
Registered:
Posts: 142
Reply with quote  #6 
Thanks Jerome, thats a good point ... i'll probly use a form segment too.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!