AnsweredAssumed Answered

activiti dynamic bpmn  form

Question asked by li6151770 on Nov 11, 2013
Latest reply on Nov 11, 2013 by li6151770
hi

public static UserTask createUserTask(String id, String name, String assignee) {
        UserTask userTask = new UserTask();
        userTask.setName(name);
        userTask.setId(id);
        userTask.setAssignee(assignee);
        //
        //userTask.setExtensionElements(createElement());
        return userTask;
    }
   
    /**
     * @Description: TODO
     * @return: Map<String,ExtensionElement>
     */
    private static Map<String, ExtensionElement> createElement(){
        ExtensionElement ee = new ExtensionElement();
        ?????????
        return null;
    }



Result:
<userTask id="provideNewSalesLead" name="Provide new sales lead" activiti:assignee="${initiator}">
  <extensionElements>
    <activiti:formProperty id="customerName" name="Customer name" type="string" required="true"/>
    <activiti:formProperty id="potentialProfit" name="Potential profit" type="long" />
    <activiti:formProperty id="details" name="Details" type="string"/>
  </extensionElements>
</userTask>

thanks.

Outcomes