question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Jason Lightfoot answered

Default Custom Code Understanding?

Hi Team,

I would like to confirm my understanding on below parameters as defined by default in process flow custom codes:

  1. Object current = param(1);
  2. treenode activity = param(2);
  3. Token token = param(3);
  4. treenode processFlow = ownerobject(activity);

Here is the my understanding in same sequence:

1. defines object the activity is related to.

2. defines activity treenode

3. defines token flow through activity

4. defines activity treenode

I would like to hear from you in more detail to get more clarity on these points with the help of example if possible?

Thank you!



FlexSim 21.0.10
custom codedefaultmeaning
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

In a general process flow, 'current' will refer to the process flow and not the involved instance object. Only in an Object Process Flow will current refer to the object instance. So:

  • current :- the instance object OR the process flow
  • activity :- the activity where this code resides
  • token :- the triggering token
  • processFlow :- the flow where the activity is located (the same as 'current' in a General Process Flow)



5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.