<div>I found the solution..</div><div><br></div><div><a href="http://community.jboss.org/people/bpmn2user/blog/2011/03/30/jbpm5-example--human-task-forms-with-variables--workitems" target="_blank">http://community.jboss.org/people/bpmn2user/blog/2011/03/30/jbpm5-example--human-task-forms-with-variables--workitems</a></div>
<div><br></div><div>:)</div>__<br>M.Sc. Engº Alex Pinheiro das Graças<br>Vitória, Brasil<br>
<br><br><div class="gmail_quote">2011/10/6 Alex Pinheiro das Graças <span dir="ltr"><<a href="mailto:alex.pgracas@gmail.com">alex.pgracas@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I Got it. <div><br></div><div>The point is how can i deploy my workitem and his handler to jbpm-console? </div><div><br></div><div>Previously you told me:</div><div><span style="background-color:rgb(255, 255, 255)">"</span><span style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)">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"</span></div>
<div><span style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><br></span></div><div><font face="arial, sans-serif">In that file there is only one line:</font></div>
"Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),<div><br></div><div>This is strange because there is no reference to the e-mail workitem, and i can't find the implementation SystemOutWorkItemHandler . </div>
<div><br></div><div>I found this file also in this directory:</div><div><span style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"> $jbpm-installer-dir$/</span><a href="http://jboss-5.1.0.GA" target="_blank">jboss-5.1.0.GA</a>\server\default\tmp\ahb1p-u4226a-gtg00plu-1-gtg0a6xu-9w\jbpm-gwt-console-server.war\WEB-INF\classes\META-INF</div>
<div><br></div><div>So where it looks at the war or at the <span style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)">$jbpm-installer-dir$/conf/META-INF/CustomWorkItemHandlers.conf</span></div>
<div><span style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><br></span></div><div>Thanks !</div><div>__</div><div><div><div class="im">M.Sc. Engº Alex Pinheiro das Graças<br>
Vitória, Brasil<br>
<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Thu, Oct 6, 2011 at 4:07 PM, Tihomir Surdilovic <span dir="ltr"><<a href="mailto:tsurdilo@redhat.com" target="_blank">tsurdilo@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
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:
<a href="https://github.com/droolsjbpm/drools/tree/master/drools-core/src/main/resources/META-INF" target="_blank">https://github.com/droolsjbpm/drools/tree/master/drools-core/src/main/resources/META-INF</a>.
<br>
When in your project you set drools.workDefinitions property value
to your own configuration, it overwrites the default one. <br>
<br>
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:
<a href="http://docs.jboss.org/jbpm/v5.1/userguide/ch13.html#d0e3568" target="_blank">http://docs.jboss.org/jbpm/v5.1/userguide/ch13.html#d0e3568</a>. The
default implementations of the Email and Log handlers are here:
<a href="https://github.com/droolsjbpm/jbpm/blob/master/jbpm-workitems/src/main/java/org/jbpm/process/workitem/email/EmailWorkItemHandler.java" target="_blank">https://github.com/droolsjbpm/jbpm/blob/master/jbpm-workitems/src/main/java/org/jbpm/process/workitem/email/EmailWorkItemHandler.java</a>
and
<a href="https://github.com/droolsjbpm/jbpm/blob/master/jbpm-flow/src/main/java/org/jbpm/process/instance/impl/demo/SystemOutWorkItemHandler.java" target="_blank">https://github.com/droolsjbpm/jbpm/blob/master/jbpm-flow/src/main/java/org/jbpm/process/instance/impl/demo/SystemOutWorkItemHandler.java</a>,
respectively.<br>
<br>
Hope this helps.<br>
Tihomir<div><div></div><div><br>
<br>
<br>
On 10/6/11 1:39 PM, Alex Pinheiro das Graças wrote:
</div></div><blockquote type="cite"><div><div></div><div>Hello,
<div><br>
</div>
<div>
<div>I am reading about Service Tasks. This a good video
explaining how we can create Service Tasks: <a href="http://vimeo.com/29457538" target="_blank">http://vimeo.com/29457538</a>.</div>
<div><br>
</div>
<div>Ok my point is when you open the eclipse BMPN editor there
are two Service Tasks Log and Email. </div>
<div>But i don't find this configuration files to both Service
Tasks. So how were they added?</div>
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
<div>
<div>Could not find work item handler for Email</div>
<div><span style="white-space:pre-wrap"> </span>at
org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:71)</div>
<div><span style="white-space:pre-wrap"> </span>at
org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105)</div>
</div>
<div><br>
</div>
<div>It's complaining about the work item handler, but where
they were supposed to be? </div>
<div><br>
</div>
<div>Thanks...</div>
<div>__<br>
M.Sc. Engº Alex Pinheiro das Graças<br>
Vitória, Brasil<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
jbpm-users mailing list
<a href="mailto:jbpm-users@lists.jboss.org" target="_blank">jbpm-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/jbpm-users" target="_blank">https://lists.jboss.org/mailman/listinfo/jbpm-users</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
jbpm-users mailing list<br>
<a href="mailto:jbpm-users@lists.jboss.org" target="_blank">jbpm-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jbpm-users" target="_blank">https://lists.jboss.org/mailman/listinfo/jbpm-users</a><br>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br>