Page 1 of 1

Simple Workflow Task Assignment

PostPosted:Thu Jun 27, 2013 3:04 am
by Bluemule
Hi,

I just started examining workflows for our company and have been trying to do a basic task assignment with a simple form. The problem I am encountering is even though I assign a task using the assignment actor-id, the task form pops up for the user who started the workflow. In my example, okmAdmin is assigned to the task node, but if a user with the username Bluemule initiates the workflow for a file the task form instantly pops up for Bluemule. If Bluemule clicks cancel, the workflow is never started, if Bluemule completes the task form an error message is generated for okmAdmin upon login. Below is my simple.jpdl.xml and forms.xml. I've attached a screenshot of the error message when okmAdmin logs in (assuming the user Bluemule completed the forms task). My main question is, why is Bluemule having the task form pop up when the task is assigned to okmAdmin? Thanks!

--simple.jpdl.xml--
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<process-definition 
  xmlns="urn:jbpm.org:jpdl-3.2"
  name="simple">
   <start-state name="start">
		<transition to="run_config"></transition>
	</start-state>
   <task-node name="run_config">
   	<task name="run_config">
		<assignment actor-id="okmAdmin"></assignment>
		</task>
		<transition to="end1"></transition>
	</task-node>
	<end-state name="end1"></end-state>
</process-definition>
--forms.xml---
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE workflow-forms PUBLIC "-//OpenKM//DTD Workflow Forms 2.1//EN"
                                "http://www.openkm.com/dtd/workflow-forms-2.1.dtd">
<workflow-forms>
  <workflow-form task="run_config">
  	<input label="suggested" name="suggested" />
    <button name="submit" label="Submit" />
  </workflow-form>
</workflow-forms>

Re: Simple Workflow Task Assignment

PostPosted:Thu Jul 04, 2013 9:28 am
by pavila
Please attach the Eclipse project zipped so I can test it.

Re: Simple Workflow Task Assignment

PostPosted:Mon Jul 08, 2013 3:57 am
by Bluemule
I've attached the archived version of my workflow. Just a note, I have been using JBoss DS to build and deploy this workflow to OpenKM. Please let me know if any additional information is needed, thanks!

Re: Simple Workflow Task Assignment

PostPosted:Mon Aug 05, 2013 10:56 am
by pavila
I can't find any problem in the workflow. Please, tell me which OpenKM version are you using and also attach the Tomcat log when you reproduce the problem.

Re: Simple Workflow Task Assignment

PostPosted:Sat Aug 17, 2013 4:47 am
by Bluemule
I have been able to replicate this error in OpenKM versions 6.2.14, 6.2.17, and 6.2.18. I have attached the log folder after replicating the problem on OpenKM version 6.2.18 (64 bit for Linux). If you need any additional information, please let me know. Thanks!

Re: Simple Workflow Task Assignment

PostPosted:Thu Sep 12, 2013 7:38 am
by pavila
Which database backend is configured with OpenKM? If using the default Hypersonic I can say it have problems with the jBPM workflow engine.

Re: Simple Workflow Task Assignment

PostPosted:Sun Sep 29, 2013 4:25 pm
by Bluemule
I was using the default database (Hypersonic). I switched to postgresql 9.1 and can confirm that it resolved my issue. Thank you for your assistance!