Page 1 of 1

Task Instance name-workflow

PostPosted:Fri Feb 10, 2012 12:15 pm
by rafal
Hello
I'm beginner of OpenKM. I'm creating workflow which send a mail. But in mail shuld be name of user, of task etc. Mail is sending but I' dont have any of this information. Could you tell what I'm doing wrong?
Code below:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<process-definition  xmlns="urn:jbpm.org:jpdl-3.2"  name="mail2">
	<start-state name="start-state1">
		<transition to="task-node1"></transition>
		<event type="task-start">
	<action name="Task_start" class ="TaskInstance.class"/>	
			<script>
			TaskInstance.start();
			</script>
			</event>
	</start-state>
	<task-node name="task-node1">
	<task name="Submit">
	<assignment actor-id="rafal"></assignment>
	<controller></controller>	
	</task>
		<transition to="mail-node1"></transition>
	</task-node>	
	<mail-node name="mail-node1" to="mail account">
	<subject>#{TaskInstance.actorId}</subject>
	<text>test</text>
		<transition to="end-state1"></transition>
	</mail-node>
	<end-state name="end-state1"></end-state> </process-definition>



Re: Task Instance name-workflow

PostPosted:Mon Feb 13, 2012 5:12 pm
by pavila
Please, can you attach the whole Eclipse project in a zip archive?

Re: Task Instance name-workflow

PostPosted:Tue Feb 14, 2012 6:59 am
by rafal
Hier is my project. It is just a test which I want expand I use in another project.

Re: Task Instance name-workflow

PostPosted:Wed Feb 15, 2012 4:03 pm
by pavila
In order to deploy the workflow correctly you need to go to Deployment tab and fill:

1.- Graphical Info File
2.- Image File
3.- Add the forms.xml file in Additional Files

Re: Task Instance name-workflow

PostPosted:Fri Feb 17, 2012 9:38 am
by rafal
I ditd it, but it still doesn't work correctly.

Re: Task Instance name-workflow

PostPosted:Fri Feb 17, 2012 10:48 pm
by pavila
What is the problem? Any error? The workflow does not work as expected?

Re: Task Instance name-workflow

PostPosted:Sat Feb 18, 2012 6:40 pm
by rafal
Ther is no error in logs, but when it send an email in subjet is nothing. There should be an actorId. What am I doing wrong?

Re: Task Instance name-workflow

PostPosted:Mon Feb 20, 2012 9:25 am
by pavila
There is any error in the log file? I mean $JBOSS_HOME/server/default/server.log