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:

/**Custom Code*/
Object current = param(1);
treenode activity = param(2);
Token token = param(3);
Object executer = param(4); //Or Task Sequence
treenode processFlow = ownerobject(activity);
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.

Marco Baccalaro avatar image Marco Baccalaro commented ·

This bug isn't fixed in 17.0.1.

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Marco Baccalaro commented ·

Seems to be fine to me:

Can you elaborate with replication steps to show what isn't working?

0 Likes 0 ·
delay-state.gif (4.7 MiB)
Marco Baccalaro avatar image Marco Baccalaro Phil BoBo ♦♦ commented ·

Ok, it works. My problem was that I saved modules when I was using the 17.0.0 then I installed the 17.0.1 but the .fsx of the Process Flow was still there. Therefore the old module was loaded.

Thanks.

0 Likes 0 ·