question

Szymon Marek avatar image
2 Likes"
Szymon Marek asked Matthew Gillespie edited

Creating ProcessFlow with flexscript code

Hi,

where can I find OnDrop function for library of ProcessFlow activities? In "dropscript" node of for example "/DragDropLibrary/Basic/Delay" there is only text "// do nothing: handled by OnDrop". So now I am searching this "OnDrop" node.

I am trying to create ProcessFlow sequence via flexscript code. Maybe you have better idea how to insert activities into ProcessFlow tab.

As I experimented a bit, "createcopy()" does not work properly because during OnDrop there are some triggers which are inserting additional properties.

FlexSim 17.1.4
processflowflexscriptcode
· 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.

1 Answer

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered Matthew Gillespie edited

We do not currently support auto-building Process Flows. You can use Process Flow or code to autobuild a model, but not a Process Flow. This was a design choice we made when developing Process Flow. If you feel there is a need for such functionality please create an idea and lay out your argument and we can have a community discussion.

5 |100000

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