question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Kavika F commented

Change 3D reference object name at a time in process flow activities?

Hi Team,

I have 2 processor (Processor1 and Processor2) having 5 similar labels. I have created a process flow for Processor 1 having 100 process flow activities using label names multiple times. I want to create exact same process flow for Processor2. I have copied the same process flow as for Processor1.

Is there any way to replace Processor1 by Processor2 in all process flow activities at a time?

Thank you!


FlexSim 21.0.10
process flowobjectreplace
· 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @Ankur A3, was Matthew Gillespie's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Felix Möhlmann commented

This sounds like an ideal case for using an Object process flow and adding Processor1 and Processor2 as instances of that Object flow. That way you create the process flow once (using current to reference the processor) and you don't have to make a new copy of it. You can also easily add as many more processors as you want. If you post your model I can show you how it would work.

· 4
5 |100000

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

Ankur A3 avatar image Ankur A3 commented ·

Hi @Matthew Gillespie,

Here is the model where I have created flow for Processor1 and I want to create same flow for processor B but it should be separate flow where I need to change the reference object to processor2.

25.06.2022_Change_Processor_Reference.fsm

Thank you!

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Ankur A3 commented ·

Here's your model with the ObjectProcessFlow replacing the one you had. Both processors were added as member instances and the code changed to "current" for the reference to each processor. You can view all tokens in the main ObjectProcessFlow definition - or look at each processor instance seperately (I've opened those views for you below the main ObjectProcessFlow definition). All edits alter the main ObjectProcessFlow definition.

25062022-change-processor-reference_jl.fsm

Instead of code to increment the values you could just use the Assign Labels activity with 'current' as the object and then just the labelname and choose 'increment' for the value.

0 Likes 0 ·
Ankur A3 avatar image Ankur A3 Jason Lightfoot ♦♦ commented ·
Hi @Jason Lightfoot,

It seems both processors are working in parallel. But I am looking it in different way.

I want to achieve flow where token will first go to processor A and then processor B. So in this way, source activity is not required for processor B flow.

I was asking with respect to activities expect source because it will remain same for Processor_A and Processor_B.

Source -> Processor_A -> Processor_B

Let me know if you need more clarity.

Thank you!

0 Likes 0 ·
Show more comments