Page 1 of 1

jBPM Workflow Instance information

PostPosted:Thu Dec 09, 2010 8:22 pm
by Rik van der Vaart
I have OpenKM 5.0 running with some simple jBPM workflows running also. But except for the okmAdmin user, nobody can view the state of an instance of a workflow. How can this be done without making everybody admin?
Thanks.

Re: jBPM Workflow Instance information

PostPosted:Wed Dec 15, 2010 9:07 am
by pavila
Actually only okmAdmin can access this information, but is possible to create a new WorkflowRole and change the
Code: Select all
request.isUserInRole()
test in the process_definition_list.jsp file and related. Perhaps is interesting to add this role by default and include this check in the next OpenKM release, but I'm not sure if this is a common behaviour. What is the problem of being an andministrator? is because you need an workflow only administrator user?

Re: jBPM Workflow Instance information

PostPosted:Wed Dec 15, 2010 12:51 pm
by Rik van der Vaart
In this particular workflow, the Users need to know what the status is of the instance in the workflow, before and after they handled it. I am finding out how to add variables to the workflow which will capture process data like who did what when. This should then be query-able either through OpenKM query or from another platform, which I would not prefer. I hope to be able to feedback to user in the instance the values of the variables so they can see what happened to the instance before they received it. After they handled their task the instance will leave their desktop and they will not be able to trace back what happened after they let it go. Any suggestions?
To give this admin function to users would not be good because in the current format the admin can stop processes instance...

Re: jBPM Workflow Instance information

PostPosted:Wed Dec 22, 2010 12:05 pm
by pavila
You can add notes to the document with the trace of the workflow. Also can send emails, or store this info in database and make an GUI extension. There are some ways to do it, but it depends on your specific problem to be solved.

Re: jBPM Workflow Instance information

PostPosted:Mon Jan 10, 2011 7:15 pm
by Rik van der Vaart
How can I add notes to the document with the trace of the workflow? Where is this documented?

Re: jBPM Workflow Instance information

PostPosted:Wed Jan 12, 2011 1:08 am
by Rik van der Vaart
OK, I have setup a MySQL table and through the com.sample.action code I am attempting to bring data of the workflow to it...

Re: jBPM Workflow Instance information

PostPosted:Tue Jan 18, 2011 6:15 pm
by Rik van der Vaart
I have a MySQL setup and call a handle in a task which sends data to the database. But I cannot find how to send the path, the actorID and the taskname OpenKM variables to send... Can you point me in the right direction?

Re: jBPM Workflow Instance information

PostPosted:Thu Jan 20, 2011 6:34 pm
by pavila
Perhaps your questions are more related to jBPM than OpenKM itself. You can create an action handler and call OpenKM API, or low level Jackrabbit API.