cancel
Showing results for 
Search instead for 
Did you mean: 

Stuck in ServiceTask

arief
Champ in-the-making
Champ in-the-making
Hi,

I have the following flow

        <serviceTask id="generateInventoryRelease"
                 name="Generate Inventory Release"
                 activiti:class="com.cmms.util.WorkOrderToInventoryReleaseGen" />
        <sequenceFlow id="flow2" sourceRef="generateInventoryRelease" targetRef="reviewInventoryRelease" />
   
        <userTask id="reviewInventoryRelease" name="Review Inventory Release"
              activiti:form="/inventoryRelease/approval" >
            <documentation>
                Request for inventory release [${inventoryReleaseId}]
            </documentation>
            <potentialOwner>
                <resourceAssignmentExpression>
                    <formalExpression>management</formalExpression>
                </resourceAssignmentExpression>
            </potentialOwner>
        </userTask>

The process went to execute the serviceTask

    public void execute(ActivityExecution execution) throws Exception {
….
….
        execution.setVariable(Constants.BPM_PARAM_INVENTORY_RELEASE_ID, ir.id)       
    }

I believe it has completed the last line (setting variable), as I've seen the variable set in table act_ru_variable

However, the process didn't continue to the next flow.
Did I miss something here?

Thanks and regards,
arief
2 REPLIES 2

arief
Champ in-the-making
Champ in-the-making
Please ignore this. I've managed to solve the problem.
Previously, i follow Activity Grails plugin example where the serviceTask use the following.
extends BpmnActivityBehavior implements ActivityBehavior
After changing with this one, it works fine.
extends BpmnJavaDelegation
Thanks  Smiley Very Happy

jbarrez
Star Contributor
Star Contributor
Yup, that's correct.

Before beta2, you needed to do your own control flow. When you now extend from JavaDelegation, this is done automatically.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.