Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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)
Custom Service Tasks from .wid file [message #1070532] Thu, 18 July 2013 06:51 Go to next message
akoskm   is currently offline akoskm Friend
Messages: 6
Registered: July 2013
Junior Member
So far we used the META-INF/drools.rulebase.conf and META-INF/ServiceTaskDefinitions.wid files to define our custom tasks in the jBPM eclipse plugin (Process Editor).

I just wanted to see how this BPMN 2.0 Modeler plays with our current bpmn process definitions. We have a couple of these custom tasks defined in ServiceTaskDefinitions.wid but none of them shows up on the palette.

The same question has been asked already on this blog:
kverlaen.blogspot.com/2011/02/new-bpmn-20-eclipse-editor.html?showComment=1321978017210#c7932576973965333470

Any help is appreciated
Re: Custom Service Tasks from .wid file [message #1070692 is a reply to message #1070532] Thu, 18 July 2013 13:34 Go to previous messageGo to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

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 Go to previous messageGo to next message
akoskm   is currently offline akoskm Friend
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 #1076475 is a reply to message #1071025] Wed, 31 July 2013 12:58 Go to previous messageGo to next message
akoskm   is currently offline akoskm Friend
Messages: 6
Registered: July 2013
Junior Member
Any idea why none of the custom tasks will show up in the modeler?
Re: Custom Service Tasks from .wid file [message #1076663 is a reply to message #1076475] Wed, 31 July 2013 18:07 Go to previous messageGo to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

These are working for me. Which version of the editor are you using?
Re: Custom Service Tasks from .wid file [message #1077036 is a reply to message #1076663] Thu, 01 August 2013 06:57 Go to previous messageGo to next message
akoskm   is currently offline akoskm Friend
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

Re: Custom Service Tasks from .wid file [message #1077105 is a reply to message #1077036] Thu, 01 August 2013 08:53 Go to previous messageGo to next message
akoskm   is currently offline akoskm Friend
Messages: 6
Registered: July 2013
Junior Member
After installing the latest Eclipse and the BPMN2 Modeler plugin the Custom Tasks are finally showed up.

I have no idea what happened. First I though that the jBPM plugin somehow conflicted with the BPMN2 Modeler so I installed that plugin too and both plugins are working fine.

Something new that I didn't meet in the jBPM plugin are the "The InputOutputSpecification ID must be a valid ID" messages showing up in all of my processes. Do you know what causes this?
Re: Custom Service Tasks from .wid file [message #1077251 is a reply to message #1077105] Thu, 01 August 2013 12:44 Go to previous messageGo to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Yes, I'm currently working on the validation code so this should be fixed soon. For now it's safe to ignore these types of error messages.
Re: Custom Service Tasks from .wid file [message #1077254 is a reply to message #1077251] Thu, 01 August 2013 12:50 Go to previous message
akoskm   is currently offline akoskm Friend
Messages: 6
Registered: July 2013
Junior Member
Great, thanks for your time!
Previous Topic:Load BPMN2 model using the API
Next Topic:How is STP different from BPMN2Modeler?
Goto Forum:
  


Current Time: Fri Apr 26 16:38:11 GMT 2024

Powered by FUDForum. Page generated in 0.03893 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top