JBoss Community

Re: Attach & Reterive Custom metadata with process instance

created by Maciej Swiderski in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community