question

Marco Baccalaro avatar image
1 Like"
Marco Baccalaro asked Marco Baccalaro commented

Process Flow Delay State

When choosing a State from the list in a task sequence Delay Activity I receive an error in system console: "Parse Error: Numbers are not valid in this field", the number is converted into a string and it doesn't work.

FlexSim 17.0.0
process flowbugdelay activitydelay state
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

Matt Long avatar image
3 Likes"
Matt Long answered Marco Baccalaro commented

Not sure how this bug made it into the 2017 release, but it was fixed some time ago. It'll be available in the next bug fix release.

In the meantime, there are two work-arounds. You can go into the code editor and return the state number:

  1. /**Custom Code*/
  2. Object current = param(1);
  3. treenode activity = param(2);
  4. Token token = param(3);
  5. Object executer = param(4); //Or Task Sequence
  6. treenode processFlow = ownerobject(activity);
  7. return 3; //Busy State

Or you can go into the tree and find the activity and change the variable var2 to the state number.

· 3
5 |100000

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