question

Avieon G avatar image
0 Likes"
Avieon G asked Avieon G commented

How do you get a Processor to Trigger the creation of a Flow Item at a Source?

The need here is for when a Processor completes a process on a Flow Item, a new Flow Item is Triggerd for creation at a Source.

How is this made possible?

Thanks.

FlexSim 22.1.2
processorsourceflowitemcreation timecreation trigger
5 |100000

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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Avieon G commented

A simple way to do this is to set the 'Inter-Arrival Time' of the source to 0, so it always creates new items if possible. In its exit trigger, close the output of the source, so only one item can leave at a time. A new item will be created immediatly, but it can't leave the source.

1657868048419.png

In the process finish trigger of the processor, you can then open the output again, so the next item is released from the source.

SourceByEvent_fm.fsm

Another way would be to use an event-triggered source in a process flow that listens to the processor's finish event. The token can then create a new item via the 'Create Object' activity.

1657868227086.png


1657868048419.png (11.2 KiB)
1657868227086.png (2.9 KiB)
· 1
5 |100000

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

Avieon G avatar image Avieon G commented ·
Thankss, Felix. Using the event-triggered source is exactly what I needed.

Thank you.

0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Jason Lightfoot commented

A source creates independently new items. You cannot trigger a source doing this. But you can create new items by command or process flow activity. If you want them to take part in your model flow, you create them in a queue. Or you move them from your model workspace into an object by command or process flow activity,

· 1
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

You can do this, although it may not be the most efficient:

Object source=Model.find("Source1");
destroyeventsofobject(source);
createevent(source,0,EVENT_CREATEPART);

The advantage is that the creation time of the item will be when you wanted it.

TriggerSourceByEvent.fsm

0 Likes 0 ·