[JBoss jBPM] - JBPM BPEL 1.1.1 Getting variables of processInstance
by evilsephiroth
Hi, i've been playing with JBPM BPEL 1.1.1. and deployed some workflow.
My problem is that i can't get the name and the value of the variables that
the workflow consumes...
|
| JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance("bpel.cfg.xml");
| JbpmContext context=jbpmConfiguration.createJbpmContext();
| ProcessInstance inst= cont.getProcessInstance(new Long(46)) //My process with 2 variables associated of type String
| Map varsMap=inst.getContextInstance().getVariables();
|
|
With the code above i can get the variables but these variables are MessageValue and i don't know a generic mode to get the String value of
the variables from this MessageValue. I've searched even in MessageValuePart but the data is in Binary..
I don't know if there's a converter or helper that can translate from messageValue saved for every process instance in variables...
Any help is appreciated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241232#4241232
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241232
16 years, 9 months
[JBoss jBPM] - Re: running jBMP on Weblogic Server 10.x
by smart_umesh_123
Hi,
Thanks for the valuable suggestions given by all of you till now.
I have one more query to ask you. At present application is using TeamWorks BPM tool. Due to some business reason they want to change to other BPM tool. so we are evaluating jBPM and Intalio BPM.
I am posting one example of TeamWorks BPD. I want your input about how easily we can develop such type of BPD using jBPM.
Process Definition: Meeting Reconciliation
There will be two swimlanes namely Meeting Organizer and System(TeamWorks Process)
1) After meeting has successfully taken place/occurred, control comes to Meeting Reconciliation
2) System sends reminder mails stating meeting is pending for re-conciliation. (in this case TeamWorks has email address stored in it's DB)
3) Meeting Requestor will check his mail and complete his re-conciliation task. If Requestor ignore the email then after 15/30 days process # 2 will be executed again.
4) even if Requestor has not completed re-conciliation within 35 days, System will close the meeting.
I am sorry for not pasting Process Diagram because i couldn't able to insert image.
One more point to add here is, actual application have business process which calls other process and web service.
Let me know if you need more information.
Thanks
Chintan
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241193#4241193
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241193
16 years, 9 months
[JBoss jBPM] - Re: Indentityservice- Jbpm4
by nilspreusker
Here is my current (working) jbpm.cfg.xml:
<?xml version="1.0" encoding="UTF-8"?>
|
| <jbpm-configuration>
| <import resource="jbpm.jpdl.cfg.xml" />
| <!--<import resource="jbpm.identity.cfg.xml" /> -->
| <process-engine-context>
| <repository-service />
| <repository-cache />
| <execution-service />
| <history-service />
| <management-service />
| <identity-service />
| <task-service />
| <script-manager default-expression-language="juel"
| default-script-language="juel"
| read-contexts="execution, environment, process-engine, spring"
| write-context="">
| <script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
| </script-manager>
| <authentication />
| <id-generator />
| <types resource="jbpm.variable.types.xml" />
| <address-resolver />
| <business-calendar>
| <monday hours="9:00-12:00 and 12:30-17:00"/>
| <tuesday hours="9:00-12:00 and 12:30-17:00"/>
| <wednesday hours="9:00-12:00 and 12:30-17:00"/>
| <thursday hours="9:00-12:00 and 12:30-17:00"/>
| <friday hours="9:00-12:00 and 12:30-17:00"/>
| <holiday period="01/07/2008 - 31/08/2008"/>
| </business-calendar>
| <mail-template name='task-notification'>
| <to users="${task.assignee}"/>
| <subject>${task.name}</subject>
| <text><![CDATA[Hi ${task.assignee},
| Task "${task.name}" has been assigned to you.
| ${task.description}
|
| Sent by JBoss jBPM
| ]]></text>
| </mail-template>
| <mail-template name='task-reminder'>
| <to users="${task.assignee}"/>
| <subject>${task.name}</subject>
| <text><![CDATA[Hey ${task.assignee},
| Do not forget about task "${task.name}".
| ${task.description}
|
| Sent by JBoss jBPM
| ]]></text>
| </mail-template>
| <command-service>
| <retry-interceptor />
| <environment-interceptor />
| <spring-transaction-interceptor current="false" />
| </command-service>
| </process-engine-context>
|
| <transaction-context>
| <object class="mypackage.IdentitySessionImpl" />
| <repository-session />
| <db-session />
| <message-session />
| <timer-session />
| <history-session />
| <mail-session>
| <mail-server>
| <session-properties resource="jbpm.mail.properties" />
| </mail-server>
| </mail-session>
| <hibernate-session current="true"/>
|
| </transaction-context>
| </jbpm-configuration>
Except of course the "mypackage" part... I'm working with spring (using org.jbpm.pvm.internal.cfg.SpringConfiguration) and against the jBPM trunk, currently at revision 5153. Hope this helps!
Nils
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241179#4241179
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241179
16 years, 9 months