:)
__
M.Sc. Engº Alex Pinheiro das Graças
Vitória, Brasil
2011/10/6 Alex Pinheiro das Graças <alex.pgracas(a)gmail.com>
I Got it.
The point is how can i deploy my workitem and his handler to jbpm-console?
Previously you told me:
"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"
In that file there is only one line:
"Log": new
org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),
This is strange because there is no reference to the e-mail workitem, and i
can't find the implementation SystemOutWorkItemHandler .
I found this file also in this directory:
$jbpm-installer-dir$/jboss-5.1.0.GA
\server\default\tmp\ahb1p-u4226a-gtg00plu-1-gtg0a6xu-9w\jbpm-gwt-console-server.war\WEB-INF\classes\META-INF
So where it looks at the war or at the
$jbpm-installer-dir$/conf/META-INF/CustomWorkItemHandlers.conf
Thanks !
__
M.Sc. Engº Alex Pinheiro das Graças
Vitória, Brasil
On Thu, Oct 6, 2011 at 4:07 PM, Tihomir Surdilovic <tsurdilo(a)redhat.com>wrote:
> Hi Alex, in Eclipse when you create a new jBPM5 project, the default
> workitem configurations are received from the runtime. If you are looking
> for the sources of those defaults, look here:
>
https://github.com/droolsjbpm/drools/tree/master/drools-core/src/main/res....
>
> When in your project you set drools.workDefinitions property value to your
> own configuration, it overwrites the default one.
>
> You have to have the handlers of your workitems on the classpath. To
> register a handler look at the docs, specifically this part of chapter 13:
>
http://docs.jboss.org/jbpm/v5.1/userguide/ch13.html#d0e3568. The default
> implementations of the Email and Log handlers are here:
>
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-workitems/src/main/ja...
>
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-flow/src/main/java/or...,
> respectively.
>
> Hope this helps.
> Tihomir
>
>
>
> On 10/6/11 1:39 PM, Alex Pinheiro das Graças wrote:
>
> Hello,
>
> I am reading about Service Tasks. This a good video explaining how we
> can create Service Tasks:
http://vimeo.com/29457538.
>
> Ok my point is when you open the eclipse BMPN editor there are two
> Service Tasks Log and Email.
> But i don't find this configuration files to both Service Tasks. So how
> were they added?
>
> One last thing, by default the eclipse create a Hello Process. I tried
> to modify this process adding the Email Service Task, but when i tried to
> run the application I got an exception:
>
> Could not find work item handler for Email
> at
>
org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:71)
> at
>
org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105)
>
> It's complaining about the work item handler, but where they were
> supposed to be?
>
> Thanks...
> __
> M.Sc. Engº Alex Pinheiro das Graças
> Vitória, Brasil
>
>
> _______________________________________________
> jbpm-users mailing
listjbpm-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/jbpm-users
>
>
>
> _______________________________________________
> jbpm-users mailing list
> jbpm-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/jbpm-users
>
>