Problem with Java Service Task

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2010 07:16 PM
I have a java service task defined as below (based on the User Guide):
When I try to deploy this process, I receive an exception saying:
Is this a bug, or am I not specifying the correct attribute with my fully qualified class name?
Thank you.
-Ryan
<serviceTask id="javaService2" name="Second Java Service" activiti:class="com.ryanberg.TestActivityBehavior"/>
When I try to deploy this process, I receive an exception saying:
org.activiti.ActivitiException: couldn't parse InputStream: The prefix "activiti" for attribute "activiti:class" associated with an element type "serviceTask" is not bound.
Is this a bug, or am I not specifying the correct attribute with my fully qualified class name?
Thank you.
-Ryan
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2010 07:38 PM
By doing a little digging through your parse code. I was able to determine that I needed to include this namespace in my <definitions> tag:
xmlns:activiti="http://activiti.org/bpmn-extensions"
The tag now looks like this:
.. I am now able to deploy this process.
xmlns:activiti="http://activiti.org/bpmn-extensions"
The tag now looks like this:
<definitions id="definitions"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti="http://activiti.org/bpmn-extensions"
targetNamespace="http://www.activiti.org/bpmn2.0">
.. I am now able to deploy this process.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2010 04:15 AM
You are right, this is not covered in the userguide. Thanks for finding this!
