<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body 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 class="moz-txt-link-freetext" href="https://github.com/droolsjbpm/drools/tree/master/drools-core/src/main/resources/META-INF">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 class="moz-txt-link-freetext" href="http://docs.jboss.org/jbpm/v5.1/userguide/ch13.html#d0e3568">http://docs.jboss.org/jbpm/v5.1/userguide/ch13.html#d0e3568</a>. The
    default implementations of the Email and Log handlers are here:&nbsp;
    <a class="moz-txt-link-freetext" href="https://github.com/droolsjbpm/jbpm/blob/master/jbpm-workitems/src/main/java/org/jbpm/process/workitem/email/EmailWorkItemHandler.java">https://github.com/droolsjbpm/jbpm/blob/master/jbpm-workitems/src/main/java/org/jbpm/process/workitem/email/EmailWorkItemHandler.java</a>
    and
    <a class="moz-txt-link-freetext" href="https://github.com/droolsjbpm/jbpm/blob/master/jbpm-flow/src/main/java/org/jbpm/process/instance/impl/demo/SystemOutWorkItemHandler.java">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<br>
    <br>
    <br>
    On 10/6/11 1:39 PM, Alex Pinheiro das Gra&ccedil;as wrote:
    <blockquote
cite="mid:CABcAqPAqwqMpBJGOARseBM0p=OJ56Nh7CALMeosBBxY4ks_8Jg@mail.gmail.com"
      type="cite">Hello,&nbsp;
      <div><br>
      </div>
      <div>
        <div>I am reading about Service Tasks. This a good video
          explaining how we can create Service Tasks:&nbsp;<a
            moz-do-not-send="true" href="http://vimeo.com/29457538">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.&nbsp;</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 class="Apple-tab-span" style="white-space:pre"> </span>at
org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:71)</div>
          <div><span class="Apple-tab-span" style="white-space:pre"> </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?&nbsp;</div>
        <div><br>
        </div>
        <div>Thanks...</div>
        <div>__<br>
          M.Sc. Eng&ordm; Alex Pinheiro das Gra&ccedil;as<br>
          Vit&oacute;ria, Brasil<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
jbpm-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jbpm-users@lists.jboss.org">jbpm-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jbpm-users">https://lists.jboss.org/mailman/listinfo/jbpm-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>