question

Mischa Spelt avatar image
0 Likes"
Mischa Spelt asked Phil BoBo commented

Custom code throws exception only when debugging.

Hi,

I added the following code to a Custom Code activity in Process Flow

  1. /**Custom Code*/
  2. Object current = param(1);
  3. treenode activity = param(2);
  4. Token token = param(3);
  5. treenode processFlow = ownerobject(activity);
  6.  
  7.  
  8. int streamId = getstream( activity );
  9. int row = 1;
  10. Table distribution = Table("ContainerAttributeDistribution");
  11.  
  12.  
  13. return 0;

and get the helpful error message

time: 0.000000 exception: FlexScript exception: MODEL:/Tools/ProcessFlow/ProcessFlow/Sample attributes>variables/codeNode

on the line declaring streamId when I put a breakpoint in the code.

codewithdebugbreaks.fsm

Any idea what goes wrong?

FlexSim 19.2.2
process flowcustom codeexceptiongetstream
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

Phil BoBo avatar image
1 Like"
Phil BoBo answered Phil BoBo commented
· 2
5 |100000

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