cancel
Showing results for 
Search instead for 
Did you mean: 

Designer issues with Subprocess

mark1970
Champ in-the-making
Champ in-the-making
Hi all,
we're currentely evaluating using activiti for a BPMN 2.0 project.We would need to use intensively subprocesses, however we have found some issues with the designer.

#1 The generated BPMN 2.0 xml contains a wrong id for subprocesses' startEvent/endEvent.
See this example generated by Activiti Designer:

  <process id="helloworld" name="helloworld">
    <startEvent id="startevent1" name="Start"></startEvent>
    <endEvent id="endevent1" name="End"></endEvent>
    <subProcess id="subprocess1" name="Sub Process">
      <startEvent id="startevent2" name="Start"></startEvent>
      <serviceTask id="subprocess1_servicetask1" name="Service Task" activiti:class="sample.JavaService"></serviceTask>
      <endEvent id="endevent2" name="End"></endEvent>
      <sequenceFlow id="subprocess1_flow3" name="" sourceRef="subprocess1_startevent2" targetRef="subprocess1_servicetask1"></sequenceFlow>
      <sequenceFlow id="subprocess1_flow4" name="" sourceRef="subprocess1_servicetask1" targetRef="subprocess1_endevent2"></sequenceFlow>
    </subProcess>
    <sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="subprocess1"></sequenceFlow>
    <sequenceFlow id="flow2" name="" sourceRef="subprocess1" targetRef="endevent1"></sequenceFlow>
  </process>
Here, the sequenceFlow references a source node "subprocess1_startevent2" which should be rather "startevent2".
 <sequenceFlow id="subprocess1_flow3" name="" sourceRef="subprocess1_startevent2" targetRef="subprocess1_servicetask1"></sequenceFlow>
The same for subprocess1_flow4.

#2 We would need very much a reusable sub process definition in the Designer. Do you know in which release will be available Call Activity in the Eclipse Designer ?

Thanks a lot
Mark
14 REPLIES 14

tiesebarrell
Champ in-the-making
Champ in-the-making
Hi Mark,

the bug you mentioned has been resolved and the fix will be in the next release, which should be somewhere in the first week of March.

As far as I know, CallActivity hasn't been added yet. However, I had already noted that as something we should be adding soon. No release planned yet, but thanks for the reminder.

mark1970
Champ in-the-making
Champ in-the-making
Hello tiesebarrel, thank you very much for the quick reply. So, will be waiting for March release. Thanks again
Mark

totyumengr
Champ in-the-making
Champ in-the-making
Hi Tiese,

Use 0.8.0, the ID of element in subprocess have add a prefix(subprocess id),
<subProcess id="subprocess3" name="管理层审核">
      <startEvent id="subprocess3startevent6" name="Start"></startEvent>

but the bpmndi namespace's element not refer the correct id(startevent6 –>subprocess3startevent6).

<bpmndi:BPMNShape bpmnElement="subprocess3" id="BPMNShape_subprocess3">
        <omgdc:Bounds height="379" width="801" x="140" y="89"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="startevent6" id="BPMNShape_startevent6">
        <omgdc:Bounds height="55" width="55" x="150" y="117"></omgdc:Bounds>
      </bpmndi:BPMNShape>


Before next release, what i can do to resolve it?

trademak
Star Contributor
Star Contributor
Hi,

I understand this is a bug an we should fix this, but what's the problem you are running into?
The BPMNDI information is there to make the diagrams interchangeable between tools like the modeler, but nothing more.
So let me know why you want to know how to resolve this before the next release.

Thanks,

totyumengr
Champ in-the-making
Champ in-the-making
Hi Tijs,

So let me know why you want to know how to resolve this before the next release.
I design bpmn20 model use Eclipse designer, this will generate BPMNDI information in model file,
when i try to deploy this model, error occurred
Invalid reference in 'bpmnElement' attribute, sequenceFlow flow40not found | rill/activiti5/pangu/pg-support.bpmn20.xml | line 154 | column 66

        at org.activiti.engine.impl.util.xml.Parse.throwActivitiExceptionForErrors(Parse.java:190)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:172)
        at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:76)
        at org.activiti.engine.impl.db.DbRepositorySession.deploy(DbRepositorySession.java:65)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:53)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)
        at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
        at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:43)
        at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:103)
        at org.activiti.engine.impl.test.TestHelper.annotationDeploymentSetUp(TestHelper.java:96)
        at org.activiti.engine.impl.test.AbstractActivitiTestCase.runBare(AbstractActivitiTestCase.java:87)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:515)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1031)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:888)
  [org.activiti.engine.impl.interceptor.CommandContext]

Delete BPMNDI fragment manually, parse OK.
So i want to know:Activiti designer have nightly-build version? So i do not need to wait a month Smiley Happy
Or does designer have a configuration to prevent BPMNDI fragment generation?

trademak
Star Contributor
Star Contributor
Hi,

I didn't think of that one. That's an annoying bug.
That's why I fixed it and released an archived site with the fix.
You can find it here: http://activiti.org/designer/archived/activiti-designer-0.8.0.1.zip.
That should work.

Best regards,

totyumengr
Champ in-the-making
Champ in-the-making
Hi Tijs,

It's working OK now!
Wonderful~~Thanks~

PS:
To resolve it once, i commented parse method[BpmnParse#parseDiagramInterchangeElements()] to ignore BPMNDI parsing.

h_ter_schuur
Champ in-the-making
Champ in-the-making
Thijs,

Great to hear you fixed this issue. Could you also assign the related JIRA issue (ACT-670) to yourself and resolve the issue in the issue tracker.

[size=85]P.S. Is it possible to make the activiti designer a separate project in the JIRA issue tracker, or change the versioning scheme of the Eclipse designer. It is hard to search on version specific desginer issues (unless one knows that Activiti 5.3 matches Designer version 0.8.0)[/size]

trademak
Star Contributor
Star Contributor
Hinse,

Thanks for the pointer.
Regarding the JIRA issue tracker. Did you already tried using the components link and then choose for the Activiti Designer?
There you can easily browse through all open issues for the Designer. Note that there are a lot issues we created ourselves to remember us about certain functionality.

Best regards,