Interaction of Time Table with Process Flow

Interaction of Time Table with Process Flow

omar_aguilera_rico
Not applicable
30 Views
9 Replies
Message 1 of 10

Interaction of Time Table with Process Flow

omar_aguilera_rico
Not applicable

[ FlexSim 18.1.2 ]

Hello boys. I have the following problem and I have not found a solution. Annex the model where the following is shown. I am using a Time Table to define my work schedules, but what is presented is that in the second 8100 the Time Table is detonated but the token in the Process Flow is in the Delay so I would expect the Delay to make a Stop and do not continue to run your time, since the activity being performed by the operator must be affected by the Time Table, but this does not happen. How can I involve the Process Flow to a Time Table or what alternatives exist to solve this problem? Thanks for your support.

time-table-process-flow.fsm

0 Likes
Accepted solutions (1)
31 Views
9 Replies
Replies (9)
Message 2 of 10

joshua_s
Not applicable
Accepted solution

The new 18.2 Beta has new commands for tokens where you can call stop() or resume() on them. So you could reference the token in a label attached to your operator, then on your down and resume functions in your time table, call stop() and resume() to the referenced token.

Message 3 of 10

omar_aguilera_rico
Not applicable

Try assigning a label to the setlabel operator (token.resource, "Label", token) to identify the token, and in Time Table perform a Label.stop () but it marks me an error. You can support me by indicating how to do it in the example I added above. I would greatly appreciate it.

0 Likes
Message 4 of 10

joerg_vogel_HsH
Mentor
Mentor

Have you tried to use an Assign activity to set a Label at the operator from the reference stored at your token as a label with the value of "token"? You have to give the label at the operator a name in this activity. You must take care of the token as long as you need the reference to it at the operator. Don't destroy the token.

13804-pf-assign-label-at-3d-object.jpg

0 Likes
Message 5 of 10

omar_aguilera_rico
Not applicable
@Jörg Vogel

I tried to do the following but it marks me error.

pro.fsm

0 Likes
Message 6 of 10

joerg_vogel_HsH
Mentor
Mentor

I tested it in your model from the question in 18.1.2. The label was assigned at the operator. Please try it on your own with the parameter of the above picture.

0 Likes
Message 7 of 10

omar_aguilera_rico
Not applicable

pro-1.fsm

Correct, that's already done. The problem I have is how do I stop the token in process flow, related to a Time Table?

0 Likes
Message 8 of 10

joerg_vogel_HsH
Mentor
Mentor

You have to write the code in the Functions of your timetable at Stop and Resume. Joshua has writen this already.

downobject.Activity.as(Token).stop();
downobject.Activity.as(Token).resume(); 	
0 Likes
Message 9 of 10

joerg_vogel_HsH
Mentor
Mentor

@Omar Aguilera Rico,if you read an sytem error containing the name "objecto", then you should set the stop ID equal in Resume and Stop as "1", like you have done it in the Resume function.

0 Likes
Message 10 of 10

omar_aguilera_rico
Not applicable

@Jörg Vogel Thanks for the help, it's working!

pro-2.fsm

0 Likes