Write a massive tasks(Delay) in process flow I want to avoid Copy-Paste Process?

Write a massive tasks(Delay) in process flow I want to avoid Copy-Paste Process?

gabriel_illescas_cavazos
Not applicable
9 Views
3 Replies
Message 1 of 4

Write a massive tasks(Delay) in process flow I want to avoid Copy-Paste Process?

gabriel_illescas_cavazos
Not applicable

[ FlexSim 16.2.1 ]

0 Likes
Accepted solutions (1)
10 Views
3 Replies
Replies (3)
Message 2 of 4

adrian_haws
Not applicable

@Gabriel illescas Cavazos Could you be a little more specific with what you're trying to model?

0 Likes
Message 3 of 4

gabriel_illescas_cavazos
Not applicable

Example: I have around 100 delays per stations and I need simulate with process flow I have the task and times per model that information a I set in a global table and a I use the values that I upload in the global table but I need to use process flow the form that I use to simulate is use a delay for represent task by task but I want to overwrite the word Delay(Default Name) for Task 1, and the Task 2 and Etc How can I avoid the copy-paste

0 Likes
Message 4 of 4

adrian_haws
Not applicable
Accepted solution

It depends on how your model functions, but you shouldn't need to use 100 delay activities for the same part of a process. As a general solution based on how you've explained it, you could execute a for loop to add the delay times for each of the tasks from your global table, then set that as your delay time.

If you do have, say, 5 delay activities and want to change their names incrementally you could do something like this:

var processFlow = "Tools/ProcessFlow/ProcessFlow/Delay";
var numberOfActivities = 5;
for(int i = numberOfActivities; i > 0; i--) {
	var currentActivity = concat(processFlow, "~", numtostring(i));
	var activityName = concat("Name", numtostring(i));
	setname(model().find(currentActivity), activityName);
}