Default Custom Code Understanding?

Default Custom Code Understanding?

rajankur6494
Collaborator Collaborator
116 Views
1 Reply
Message 1 of 2

Default Custom Code Understanding?

rajankur6494
Collaborator
Collaborator

[ FlexSim 21.0.10 ]

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!



0 Likes
Accepted solutions (1)
117 Views
1 Reply
Reply (1)
Message 2 of 2

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

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)



0 Likes