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 class="Apple-style-span" style="background-color: rgb(255, 255, 255); ">&quot;</span><span class="Apple-style-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&quot;</span></div>

<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></span></div><div><font class="Apple-style-span" face="arial, sans-serif">In that file there is only one line:</font></div>

  &quot;Log&quot;: 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&#39;t find the implementation SystemOutWorkItemHandler . </div>

<div><br></div><div>I found this file also in this directory:</div><div><span class="Apple-style-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">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 class="Apple-style-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 class="Apple-style-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>M.Sc. Engº Alex Pinheiro das Graças<br>

Vitória, Brasil<br>
<br><br><div class="gmail_quote">On Thu, Oct 6, 2011 at 4:07 PM, Tihomir Surdilovic <span dir="ltr">&lt;<a href="mailto:tsurdilo@redhat.com">tsurdilo@redhat.com</a>&gt;</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 class="h5"><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 class="h5">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&#39;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&#39;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">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>