Answered

Passing Parameter from Process to SubProcess

Hi everyone!

I have a Bizagi project that consists of modelling a business process"a" that always have a reusable subprocess"b" that

sometimes can be used like another independent process. Reason because those process are different databases.

So...

When I start the entire project(from a to b), it´s necessary to see some datas recovered by a consult form designed

from a linked virtual entity(from our ERP), where I can to recover all data necessary and pass only a product code.

This data I´m passing from process"a" Entity Master(linked to TB_Item-Virtual Entity) to the process"b" Entity master

(linked to TB_Item-Virtual Entity too). Then in the subprocess"b" the product code field it´s showed with option

editable equal to false.... Here it´s OK!....

But...

Always when I start the subprocess"b", like a independent process, I need to select a product code from a

linked Virtual Entity to recover a list of product codes and imput in the same field on database(process b)

that is used when I create a full process(from a to b).

(... How can I do it?)

Problem...

The field to product code in process"b" database is linked to same Virtual Entity(TB_Item) and when put the

collection TB_Item in the first form to select the product code, to select the same(in a consult form designed), the

data don´t appears in the first form and i have no reference about this process

Question...

How can I use the same field from the subprocess"b" to receiver data from process"a" or register from the process itself?

Kind Regards

Comments (9)

photo
0

Dear Cleber

A member of our support team will contact you

best regards

Luis EMilio

photo
0

Hi Luis Emilio, I have no answers about the questions yet. Can you help me about that? Thanks. Cleber Machado

photo
0

Dear Filipe,

I do not know what happen. Did you receive an email with the answer? Can you post over here, please?

Thank you

photo
0

It is possible to pass values to a sub-process. In the wikiof Bizagi explains that sub-processes can or cannot have the same processentity of the parent process. You need to join both processes (Parent and son)with an expression. Create an expression before to start a sub-process.Please read

these articles to understand sub-process and expression:

photo
0

Thank you very much.

Each process in Bizagi has one main entity. The Process Entity is the main entity that is used to access the rest of the data model entities. There is only one Process Entity per process.If the process (or Sub-Process) is created through the Modules view, the Process Entity is not set. Therefore, you need to manually set the Process Entity of the multiple Sub-Process in order to access its data.

Some more articles:

  1. http://help.bizagi.com/bpmsuite/en/index.html?access_to_the_parent_process_i.htm
  2. http://help.bizagi.com/bpmsuite/en/index.html?managing_sub-process_entities.htm

photo
0

Juan Zuluaga wrote:

Thank you very much.

Each process in Bizagi has one main entity. The Process Entity is the main entity that is used to access the rest of the data model entities. There is only one Process Entity per process.If the process (or Sub-Process) is created through the Modules view, the Process Entity is not set. Therefore, you need to manually set the Process Entity of the multiple Sub-Process in order to access its data.

Some more articles:

  1. http://help.bizagi.com/bpmsuite/en/index.html?access_to_the_parent_process_i.htm
  2. http://help.bizagi.com/bpmsuite/en/index.html?managing_sub-process_entities.htm

Ok, thank you very much, I managed to pass the values in.

But I still have one questionWhen I was writing the Expression I didn't have the "getCaseById" method availabe on the intellisense, after writing "CHelper." I got many other methods but not that one, still i wrote it as it is on the wiki example, and it worked.

photo
0

Dear Filipe,

I am glad it works! Thank you for your suggestion.

photo
1

Oh how I have typos in official help files...

On this guide, http://help.bizagi.com/bpmsuite/en/index.html?sub-processes.htm, it states that the sub-process name is Payments, with an S at the end.

The typo is later down on step 4:

4. Finally associate the instance of the Sub-process entity to the attribute in the Parent process used to reference the Sub-process.

The example states this: <Payment> = <Invoice.Payment>;

Which is wrong, the first word in that line HAS to be the sub-process name exactly spelled right. In Bizagi's example it should be <Payments> = <Invoice.Payment>;

So my comment is to help the next guy navigate this.

photo
1

Dear Mark,

Thank you for your feedback. But, there is not a error. The important point is to use a correct xPath to add attributes. In this case, even the process is called Payments, the relationship between Invoice and Payments in Payment, so that you need to use it without s.

Regards