Home » Eclipse Projects » BPMN 2.0 Modeler » Custom Service Tasks from .wid file(Trying to import custom tasks from jBPM Process Editor into BPMN 2.0 Modeler)
|
Re: Custom Service Tasks from .wid file [message #1070692 is a reply to message #1070532] |
Thu, 18 July 2013 13:34 |
|
WID files are supported by the BPMN2 Modeler and they should show up in the "Custom Tasks" toolpalette drawer. If they do not, then there's a problem. Can you please post these WID files here on this forum, or email them to me so I can figure out what's going on?
Thanks!
Bob
|
|
|
Re: Custom Service Tasks from .wid file [message #1071025 is a reply to message #1070692] |
Fri, 19 July 2013 07:24 |
akoskm Messages: 6 Registered: July 2013 |
Junior Member |
|
|
Hi Robert, thanks for the quick reply.
There is also a drools.rulebase.conf in my META-INF directory which point to my ServiceTaskDefinitions.wid file:
drools.workDefinitions = ServiceTaskDefinitions.wid
Here is my wid configuration:
import org.drools.process.core.datatype.impl.type.IntegerDataType;
import org.drools.process.core.datatype.impl.type.StringDataType;
import org.drools.process.core.datatype.impl.type.BooleanDataType;
import org.drools.process.core.datatype.impl.type.ObjectDataType;
[
[
"name" : "OutputHandler",
"displayName" : "OutputHandler"
],
// fire this to terminate the session
[
"name" : "StopSignalHandler",
"displayName": "Stop",
"parameters" : [
"Level" : new StringDataType()
],
"displayName" : "StopSignalHandler"
],
[
"name" : "WorkOrderHandler",
"displayName" : "WorkOrderHandler",
"parameters" : [
"DisplayName" : new StringDataType()
]
],
[
"name" : "CopyHandler",
"displayName" : "Copy",
"parameters" : [
"DisplayName" : new StringDataType(),
"From" : new StringDataType(),
"To" : new StringDataType(),
"AbsolutePath": new StringDataType()
]
],
[
"name" : "MoveHandler",
"displayName" : "Move",
"parameters" : [
"DisplayName" : new StringDataType(),
"From" : new StringDataType(),
"To" : new StringDataType(),
"Pattern": new StringDataType(),
"FileName": new StringDataType()
]
],
[
"name" : "ScriptHandler",
"displayName" : "ScriptHandler",
"parameters" : [
"Path" : new StringDataType(),
"Script" : new StringDataType(),
"ResponseType": new StringDataType()
]
],
[
"name" : "CheckHandler",
"displayName" : "Check",
"parameters" : [
"DisplayName" : new StringDataType()
]
],
[
"name" : "DSTHandler",
"displayName" : "DSTHandler",
"parameters" : [
"DisplayName" : new StringDataType()
]
],
[
"name" : "PDFOutHandler",
"displayName" : "PDFHandler",
"parameters" : [
"DisplayName" : new StringDataType()
]
],
[
"name" : "XMLHandler",
"displayName" : "XMLHandler",
"parameters" : [
"DisplayName" : new StringDataType(),
"OutputFolder" : new StringDataType()
]
],
[
"name" : "ViPPHandler",
"displayName" : "ViPPHandler",
"parameters" : [
"DisplayName" : new StringDataType()
]
],
[
"name" : "EndProcessHandler",
"displayName" : "EndProcessHandler",
"parameters" : [
"DisplayName" : new StringDataType()
]
],
[
"name" : "MapHandler",
"displayName" : "Mapper",
"parameters" : [
"Map": new StringDataType(),
"Queries": new StringDataType()
]
],
[
"name" : "TimerHandler",
"displayName" : "Timer",
"parameters" : [
"Wait" : new StringDataType()
]
],
[
"name" : "ListFilesHandler",
"displayName" : "List Files",
"parameters" : [
"DisplayName" : new StringDataType(),
"Path" : new StringDataType(),
"Filename" : new StringDataType(),
"Pattern" : new StringDataType()
]
],
[
"name" : "EmailHandler",
"displayName" : "Email",
"parameters" : [
"From" : new StringDataType(),
"To" : new StringDataType(),
"Body": new StringDataType(),
"Cc" : new StringDataType(),
"Bcc" : new StringDataType()
]
]
]
|
|
| | |
Re: Custom Service Tasks from .wid file [message #1077036 is a reply to message #1076663] |
Thu, 01 August 2013 06:57 |
akoskm Messages: 6 Registered: July 2013 |
Junior Member |
|
|
BPMN2 Editor 0.2.6.201306261903 org.eclipse.bpmn2.modeler.feature.feature.group Eclipse.org
My project is imported as maven project and has the following structure:
panther-bpmn
panther-bpmn/src
panther-bpmn/src/main
panther-bpmn/src/main/resources
panther-bpmn/src/main/resources/META-INF
panther-bpmn/src/main/resources/META-INF/ServiceTaskDefinitions.wid
panther-bpmn/src/main/resources/META-INF/drools.rulebase.conf
panther-bpmn/src/main/resources/Copy.bpmn
panther-bpmn/src/test
panther-bpmn/src/test/resources
panther-bpmn/src/test/resources/CopyTest.bpmn
panther-bpmn/pom.xml
I left out the Eclipse generated files. The modeler opens the bpmn file correctly but the custom service tasks are still missing from the palette. Does this plugin requires some additional settings in Eclipse, because I basically just installed it and tried to open the files, because it worked with the jBPM Eclipse plugin.
[Updated on: Thu, 01 August 2013 07:02] Report message to a moderator
|
|
| | | |
Goto Forum:
Current Time: Fri Apr 26 16:38:11 GMT 2024
Powered by FUDForum. Page generated in 0.03893 seconds
|