Discussion:
[jboss-user] [jBPM] - Attach & Reterive Custom metadata with process instance
Crasy Bpm
2013-07-24 06:11:45 UTC
Permalink
Crasy Bpm [https://community.jboss.org/people/crasybpm] created the discussion

"Attach & Reterive Custom metadata with process instance"

To view the discussion, visit: https://community.jboss.org/message/829421#829421

--------------------------------------------------------------
Hello,

      We are developing 1 Document based application with jbpm5.2 ( Migerating with jbpm5.4 also) . Now we need to handle some metadata of document so is it possible to handle metadata with process instance? Below are my based requirement.

      1)  Store custom metadata(document name, size, creatorname etc...) with process instance.

      2)  Reterive metadata with process instance .

      Thanks in advance

Regards,
Crasybpm
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/829421#829421]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-07-26 08:07:29 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Attach & Reterive Custom metadata with process instance"

To view the discussion, visit: https://community.jboss.org/message/829931#829931

--------------------------------------------------------------
you should use process variables (aka property in bpmn2) to store any information that process instance might require. Moreover process variables might be created by the process instance itself e.g. using user task to collect input from end users like document name. Same you can access process variables from process instance as soon as you have the process instance (mainly its id).

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/829931#829931]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Crasy Bpm
2013-07-28 05:11:54 UTC
Permalink
Crasy Bpm [https://community.jboss.org/people/crasybpm] created the discussion

"Re: Attach & Reterive Custom metadata with process instance"

To view the discussion, visit: https://community.jboss.org/message/830096#830096

--------------------------------------------------------------
Hello Maciej Swiderski,

         Thanks for your kind reply. Which implmentation regarding metada will be more useful when perfomance is concern,

         1) Store metadata into process instance and reterive when we require.

          2) Use user defined entity of metadata and get by using database join table with process instance.

         As we are storing object into process instance and i am affarid regarding performance issue. Please advise and thanks for help again.


Regards,
Crasybpm
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/830096#830096]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-07-29 05:40:10 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Attach & Reterive Custom metadata with process instance"

To view the discussion, visit: https://community.jboss.org/message/830155#830155

--------------------------------------------------------------
I would say that option one is the only one that could be used. Please note that when you use processes you should rely on the engine to do the work as needed instead of trying to use its data base as it might change and thus making your system fragile.

Not sure what is your exact use case but when you store information as part of the process instance that usually means that the process will always have access to it whenever is needed and the process variables can be sent to other systems (like user interface) to interact with other entities.

There is another strategy for handling data within process instance, you can only store data identifiers and provide a service that the engine can invoke whenever the data is needed. That way you make it sort of lazy loading of data as they will be collected only when needed and will not put any overhead when storing those information as they will be relatively small.

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/830155#830155]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...