cancel
Showing results for 
Search instead for 
Did you mean: 

Add variable copy to call activity

bernd_ruecker
Champ in-the-making
Champ in-the-making
See http://jira.codehaus.org/browse/ACT-560.

I currently asked Tom:

Is it possible to add own extensions in the activiti-bpmn-extensions-5.0.xsd? Or when is that allowed?
Or do we have to work with the existing ones?


Depending on that answer we can define, how the XML configuration should look like.
12 REPLIES 12

bernd_ruecker
Champ in-the-making
Champ in-the-making
Okay, for the moment I added a switch to disable schema validation in the @Deployment annotation, so the tests works (the WS stuff disabled that as well!).

And another thing that puzzled me:


AtomicOperationProcessEnd

  @Override
  protected void eventNotificationsCompleted(InterpretableExecution execution) {
    execution.destroy();
    execution.remove();

    // and trigger execution afterwards
    if (superExecution!=null) {
      superExecution.setSubProcessInstance(null);
      ActivityImpl activity = (ActivityImpl) superExecution.getActivity();
      SubProcessActivityBehavior subProcessActivityBehavior = (SubProcessActivityBehavior) activity.getActivityBehavior();
      try {
        subProcessActivityBehavior.completed(superExecution);
      } catch (Exception e) {
        log.log(Level.SEVERE, "Error while completing sub process of execution " + execution, e);
      }
    }
  }

Why is the exception just catched and logged? Shouldn't be this exception propagated and cause a rollback?

I will commit a proposal in a couple of minutes, if the test suite passes locally.

Thanks and cheers
Bernd

In our project there is a need of passing some default values from the BPMN file for which I was hoping to add elements to the part extensionelements so is there a way to edit the existing xsd file to add custom elements and attributes?

jbarrez
Star Contributor
Star Contributor
Custom elements can be added to the extension elements in the xml. There is no need to add it to the xsd if it's in the extension element.

You would need to add parser handling for those specific elements, to handle them at parse time.