Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Rick

Avatar / Picture

Senior Veteran
Registered:
Posts: 259
Reply with quote  #1 

As we all know code can be placed in several different places:
When Action Started
When Action Completed
When Stage Started
When Stage Completed
also
When User Loads Form
When User Saves Form

I know there is a specific order in which Metastorm executes and commits code in these different places and I have it in my head that it is not necessarily as simple as one would expect.

I believe there was a useful post on here about it some years ago but I can't find it and it may also have changed in v9.

Can anyone enlighten me please?

Thanks,
Rick.


__________________

Another full day of doing nothing but rearranging zeros and ones. :)
You know it will be a good day when there is no human interaction on the schedule.

0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #2 
The order is:
Action Started
Form Loaded
Form saved
Action Comitted
Stage left (origin stage)
Stage Stated (destination stage)

In earliuer versions (5.x, I think) form refreshes caused the 'on form load' to execute again, but certainly not from 6 onwards.

__________________
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
Rick

Avatar / Picture

Senior Veteran
Registered:
Posts: 259
Reply with quote  #3 
Thanks, Jerome.

It always trips me up that 'WhenStageCompleted' comes after 'WhenActionCompleted'.

I don't really understand the point of 'StageStarted' and 'StageCompleted' - I almost always just put code on the actions.

Rick.

__________________

Another full day of doing nothing but rearranging zeros and ones. :)
You know it will be a good day when there is no human interaction on the schedule.

0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #4 
One added benefit/use of when stage started/completed is having certain activity, such as setting the deadline when the stage starts or updating client details from the master source (in case they change for instance).  If there are several actions or methods of entering the stage ("forward to stage" admin stage for instance) you'd have to code the same logic in each action.  Being in stage started/completed runs the activity instead of having to code each individual action.

I've also used this in a common stage to update client details as stages change.  This way I never miss coding an action or individual change.  (Though I admit this is only useful in certain circumstances.)
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!