JBoss Community

Re: I need to read values from a MySQL database and assign actors for human task accordingly. How can I retrieve content from a database or a file into the web designer?

created by Jiri Svitak in jBPM - View the full discussion

Hello Aayush,

 

The web designer is not able to connect to a database in a way you describe. There is another approach how to solve this.

 

You can use process variables. You can fill the Actors field in designer with a value like #{actors}. In your code, you can fetch data from a database and supply them as a process variable "actors" to a process instance when calling startProcess() method.

 

See also: https://community.jboss.org/thread/216207

 

Hope that helps.

Reply to this message by going to Community

Start a new discussion in jBPM at Community