[jbpm-users] Create New Work Item Definition

Tihomir Surdilovic tsurdilo at redhat.com
Tue Oct 4 18:46:09 EDT 2011


You are probably using the jBPM 5.1 Installer which ships with 5.2.0. 
The Guvnor workitem definition editor was added after that and is 
available in Guvnor 5.3.0.CR1. You can easily update guvnor in the jBPM 
installer:
1) In $jbpm-installer-dir$ edit build.properties, change

#   drools.guvnor.version=5.2.0.Final
#   
drools.guvnor.url=https://repository.jboss.org/nexus/content/repositories/releases/org/drools/guvnor-distribution-wars/5.2.0.Final/guvnor-distribution-wars-5.2.0.Final-jboss-as-5.1.war
drools.guvnor.version=5.2.0.Final
drools.guvnor.url=https://repository.jboss.org/nexus/content/repositories/releases/org/drools/guvnor-distribution-wars/5.2.0.Final/guvnor-distribution-wars-5.2.0.Final-jboss-as-5.1.war

to

#   drools.guvnor.version=5.3.0.CR1
drools.guvnor.version=5.3.0.CR1
drools.guvnor.url=https://repository.jboss.org/nexus/content/repositories/releases/org/drools/guvnor-distribution-wars/5.3.0.CR1/guvnor-distribution-wars-5.3.0.CR1-jboss-as-5.1.war

2) While you are at it, also upgrade the web designer to the latest 
release, change

# the version of the Designer you want to use
# and the associated URL you want to get it from
designer.version=1.0.0.052-jboss
designer.url=http://sourceforge.net/projects/jbpm/files/designer/designer-1.0.0.052/

to

# the version of the Designer you want to use
# and the associated URL you want to get it from
designer.version=1.0.0.055-jboss
designer.url=http://sourceforge.net/projects/jbpm/files/designer/designer-1.0.0.055/

3)  You also have to map your workitem to your implementation (this is 
not defined in the bpmn2), in 
$jbpm-installer-dir$/conf/META-INF/CustomWorkItemHandlers.conf  see the 
examples of the pre-existing Log and Email workitems and add yours there 
as well

4) Run:
ant clean.demo
ant install.demo
ant start.demo
in $jbpm-installer-dir$

Note that by doing this you will loose your existing Guvnor repository, 
so you might want to save off any existing assets (via guvnor repository 
xml export for example) before running ant clean.demo


Hope this helps.
Tihomir


On 10/4/11 5:53 PM, Alex Pinheiro das Graças wrote:
> Hello,
>
> I am trying to create a new Work Item Definition as shown in these 
> videos:
> http://vimeo.com/26126678
> http://vimeo.com/29457538
>
> But unfortely I can't find the option to create a new Work Item 
> Definition.
> After I defined the parameters and the Icon from the Work Item How can 
> I define what the activity will do. For instance call a web-service, 
> send a e-mail , etc...
>
> I know that I have to implement a class, like explained in section 
> 9.2.4 in the document below:
> http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-flow/html_single/index.html#ch.Domain_Specific_Processes
>
> It's the same when we are using the web-editor? Where I must deploy 
> the class?
>
> Att.
> __
> M.Sc. Engº Alex Pinheiro das Graças
> Vitória, Brasil
>
>
> _______________________________________________
> jbpm-users mailing list
> jbpm-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbpm-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbpm-users/attachments/20111004/0ce8ae04/attachment.html 


More information about the jbpm-users mailing list