AnswerHub Upload Issue
Our AnswerHub community currently has a bug that prevents you from attaching your model or other files to your questions. AnswerHub is aware of this issue and they are working on a fix. Until we receive their patch, you can upload your models and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.


Lucas Klein avatar image
1 Like"
Lucas Klein asked Lucas Klein commented

ProcessFlow class - module SDK


I am trying to explore a little bit further the module SDK and now I am trying to create some new ProcessFlow activities. When I use the SDK to create a new object class, I can set at the object header, that the class is inheriting a FlexSim Object, FixedResource and so on, but when I am creating a new ProcessFlow activity, what should I inherit, and how could I inherit some ProcessFlow existing activity to customize it?

Thanks in advance.

FlexSim 20.2.0
processflowflexsim 20.2.0module sdkactivity
· 5
5 |100000

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

Looks like the Process Flow SDK is not included with the module SDK. I'll have to try and get that built and uploaded.

2 Likes 2 ·

@matt.long thanks! this will help a lot.

0 Likes 0 ·
@lucas.klein, do you still need help with this?
0 Likes 0 ·

@benjamin.w2 yes, I still need. I checked at the download sessions and looks like the SDK has not been updated yet. Could you please confirm the progress and if it will be released at the 20.2 version or check if it has been uploaded somewhere else?

0 Likes 0 ·

Hi @lucas.klein, was jordan.johnson's answer helpful? If so, please click the red "Accept" button on 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 or comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jordan Johnson avatar image
Jordan Johnson answered Lucas Klein commented

Hi Lucas, sorry for the delay. We have uploaded the module SDK for version 20.2, which now includes the headers and lib files for Process Flow. You can download the SDK from the website, under the Modules section.

To answer your question, if your activity is similar to an existing activity, you may have success inheriting the similar activity. It may be easier to start from scratch, though. In that case, you can inherit Activity or BlockingActivity, depending on whether tokens can be stopped on your new activity. For example, AssignLabels is not a blocking activity, but a Delay is.

· 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.

Thanks @jordan.johnson, at the beginning I didn't found the ProcessFlow headers at the solution, but it is in the module folder, so I just need to add the "ProcessFlowContent" folder and add the existing ".h" files inside, correct?

The starting from scratch snippet at Activity.h helps a lot too, but I was just in doubt about where these "ProcessFlow.cpp" and "ModelView.cpp" files are.

0 Likes 0 ·
1599660809443.png (17.5 KiB)
1599660847982.png (8.9 KiB)

That comment is out of date. Every module has the methods createsdtderivative() and createodtderivative(); in the module template, those methods are in module.cpp.

1 Like 1 ·

oh okay! Thanks =]

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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