[JBoss jBPM] - Extending jPDL for using in web application
by s_aliakbary
Dear friends
I'm using jBPM in a web application environment. Each Task-Node would be a representative for a task in the worklist of a user in my web application. So I think it is better to specify the target URL coresponding to each task in the jPDL file. But original jPDL standard does not support extra information -like this URL- for task-nodes. I think I should implement my own Node and add this extra information to it. some other information like menu id can also be included in the tag.
Is this approach correct?
The jPDL would have something like this :
<my-task-node name="something">
| <task swimlane="something else">
| </task>
| <transition name="something" to="somewhere" />
| <menukey menukey="letter" />
| <Link url="/somepage.jsp" />
| <extendedattribute name="ip" value="192.168.110.110" />
|
| </my-task-node>
|
When I'm showing worklist to user, using jbpm_taskinstance, I will bring this Link and coresponding taskInstance row Id to user.
Thanks and excuse me for the long message.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986051#3986051
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986051
19Â years, 8Â months
[JBoss jBPM] - Re: I have some problems Help!
by achui_1980
"achui_1980" wrote : hi
| i'm using jbpm to test a process,but when i add a even "node-leave",jbpm always tell some exceptions like this
|
| org.jbpm.jpdl.JpdlException: [[ERROR] line 20: cvc-complex-type.2.4.a: Invalid content was found starting with element 'transition'. One of '{"http://jbpm.org/3/jpdl":event, "http://jbpm.org/3/jpdl":timer, "http://jbpm.org/3/jpdl":exception-handler}' is expected., [WARNING] warning: no swimlane or assignment specified for task '
|
|
|
|
| ']
| at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
| at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
| at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
| at com.sample.SimpleProcessTest.testSimpleProcess(SimpleProcessTest.java:15)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| at junit.framework.TestResult$1.protect(TestResult.java:106)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.framework.TestResult.run(TestResult.java:109)
| at junit.framework.TestCase.run(TestCase.java:118)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
|
| when i remove the event it run successful
|
| here is my processdefinition
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| name="simple" xmlns="http://jbpm.org/3/jpdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd ">
| <start-state name="start">
|
|
|
|
|
|
|
| </start-state>
| <end-state name="end"></end-state>
| <task-node name="TN_WriteRequest">
|
|
|
|
|
|
| </task-node>
| <task-node name="TN_TotalPart">
|
|
|
| </task-node>
| <task-node name="TN_Manager">
|
|
|
| </task-node>
|
|
|
|
|
|
|
| </process-definition>
|
| please help me ,thanks
|
is anyboday can help me!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986047#3986047
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986047
19Â years, 8Â months
[JBoss jBPM] - I have some problems Help!
by achui_1980
hi
i'm using jbpm to test a process,but when i add a even "node-leave",jbpm always tell some exceptions like this
org.jbpm.jpdl.JpdlException: [[ERROR] line 20: cvc-complex-type.2.4.a: Invalid content was found starting with element 'transition'. One of '{"http://jbpm.org/3/jpdl":event, "http://jbpm.org/3/jpdl":timer, "http://jbpm.org/3/jpdl":exception-handler}' is expected., [WARNING] warning: no swimlane or assignment specified for task '
']
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
at com.sample.SimpleProcessTest.testSimpleProcess(SimpleProcessTest.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
when i remove the event it run successful
here is my processdefinition
<?xml version="1.0" encoding="UTF-8"?>
<process-definition
name="simple" xmlns="http://jbpm.org/3/jpdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd ">
<start-state name="start">
</start-state>
<end-state name="end"></end-state>
<task-node name="TN_WriteRequest">
</task-node>
<task-node name="TN_TotalPart">
</task-node>
<task-node name="TN_Manager">
</task-node>
</process-definition>
please help me ,thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986045#3986045
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986045
19Â years, 8Â months