Page 1 of 1

First workflow

PostPosted:Sun Jan 09, 2011 7:44 pm
by mdragoi.uye
Hi

I try to use OpenKM 5.0 (first configuration, learn to use, tested) first steps. I read documentation about workflow (http://wiki.openkm.com/index.php/Workflow_Guide) and base on video from (http://wiki.openkm.com/index.php/Overview -> http://docs.jboss.com/jbpm/v3/demos/mov ... erview.htm) i create a first workflow.

Unfortunately for me is not working :(. It a simple workflow the scope is one person make a holliday request to Dorin, Dorin can request some extra information (and in this case need to return to user which start the workflow and this user have to add new information) and after can approve or disapprove the request.

On OpenKM I create workflow but from ordinar user (say Petre) it not request first fields and also Dorin can make action on workflow. I put here the code from workflow please can somebody to explain what I do wrong where i make mistakes.

Thanks, please help me to create a firs workflow
Petre

I attach the ".par" file - I need to tell that I don't know how to used

I show the code here:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<process-definition  xmlns="urn:jbpm.org:jpdl-3.2"  name="holiday-request">
	<start-state name="enter request">
		<task swimlane="initiator" name="request entry">
			<controller>
				<variable access="read,write,required" name="start date" mapped-name=""></variable>
				<variable access="read,write,required" name="duration"></variable>
			</controller>
		</task>
		<transition to="evaluate request"></transition>
	</start-state>

	<task-node name="evaluate request">
		<task name="request evaluation">
			<assignment actor-id="dorin"></assignment>
			<controller>
				<variable access="read" name="start date"></variable>
				<variable access="read" name="duration"></variable>
				<variable access="read" name="info"></variable>
				<variable access="read,write" name="decision"></variable>
			</controller>
		</task>
		<transition to="give additional information" name="more info needed"></transition>
		<transition to="end" name="approve/disapprove"></transition>
	</task-node>

	<task-node name="give additional information">
		<task name="additional info entry" swimlane="initiator">
			<controller>
				<variable access="read" name="start date"></variable>
				<variable access="read" name="duration"></variable>
				<variable access="read,write" name="info"></variable>
			</controller>
		</task>
		<transition to="evaluate request"></transition>
	</task-node>

	<end-state name="end"></end-state>
</process-definition>

Re: First workflow

PostPosted:Mon Jan 10, 2011 7:27 pm
by jllort
First task must be like this:
Code: Select all
<start-state name="start">
    and something here
</start-state>
and into form.xml might be something like this:
Code: Select all
<workflow-form task="run_config">
    <input label="name" type="text" name="number" /> // something more here, the values demanded
</workflow-form>
That will demand some information before workflow starting

Re: First workflow

PostPosted:Tue Jan 11, 2011 9:59 pm
by mdragoi.uye
I make the change. The start form appears but after pressed "start" button - nothing happen.

Re: First workflow

PostPosted:Wed Jan 12, 2011 7:01 am
by jllort
Well after pressing button, is executed some transaction that's assigned to some user, you must connect to that user, and go to dashboard / workflow.

You can take a look at administration, there you can see started workflow status, it'll give some information about each workflow status.

Re: First workflow

PostPosted:Thu Feb 23, 2012 4:08 pm
by tomsilby
I have tried the form snippet below and it does prompt the user to type the information but the Start button will not respond. That is, the dialog box will not disappear until the user presses Close button. Can you help?
Code: Select all
<workflow-form task="run_config">
  	<input label="Quantity" name="quantity" type="text"/>
  </workflow-form>
workflowexample.tiff
workflowexample.tiff (10.81 KiB) Viewed 4577 times

Re: First workflow

PostPosted:Fri Feb 24, 2012 1:24 pm
by tomsilby
Here is a little more information. I am running version 5.0.3 on Linux Red Hat. I experience the problem on the latest versions of Chrome, Firefox, or Internet Explorer. The modal box pops up and prompts me for the information, but when I click Start, the workflow does not start and the popup box does not disappear. Thank you for any help
tomsilby wrote: I have tried the form snippet below and it does prompt the user to type the information but the Start button will not respond. That is, the dialog box will not disappear until the user presses Close button. Can you help?

<workflow-form task="run_config">
<input label="Quantity" name="quantity" type="text"/>
</workflow-form>

Re: First workflow

PostPosted:Sun Feb 26, 2012 8:28 am
by jllort
Go to menu tools and selecte show debug console. Then execute workflow, appearing some error '

Re: First workflow

PostPosted:Sun Feb 26, 2012 8:49 pm
by tomsilby
jllort wrote:Go to menu tools and selecte show debug console. Then execute workflow, appearing some error '
Thanks. I did get an error. I'm not sure what it means.
dbg1.tiff
dbg1.tiff (86.27 KiB) Viewed 4553 times
dbg2.tiff
dbg2.tiff (63.39 KiB) Viewed 4553 times

Re: First workflow

PostPosted:Mon Feb 27, 2012 11:00 am
by jllort
You've got after executing workflow, no ?

Re: First workflow

PostPosted:Mon Feb 27, 2012 1:37 pm
by tomsilby
jllort wrote:You've got after executing workflow, no ?
Yes. These are the messages I got after I executed the workflow.

Re: First workflow

PostPosted:Thu Mar 01, 2012 3:51 pm
by jllort
Seems there's a problem starting workflow with initial variable, it'll be needed to debug source code to understanding what's exactly happening. Which OpenKM version are you using ?

Re: First workflow

PostPosted:Mon Mar 05, 2012 3:04 pm
by pavila
Please, post screenshots in JPG or PNG format in order to generate thumbnails. TIFF is not supported.

And try to reproduce the error in a more recent version of OpenKM.