03-31-2015 03:36 AM
<userTask id="AlertQueueTask" name="AlertQueue">
<extensionElements>
<activiti:formProperty id="AlertName" name="AlertName" type="string"></activiti:formProperty>
<activiti:formProperty id="Carrier" name="Carrier" type="string"></activiti:formProperty>
<activiti:formProperty id="DepDate" name="DepDate" type="date"></activiti:formProperty>
</userTask>
03-31-2015 05:28 AM
04-01-2015 02:06 AM
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();//requires activiti.cfg.xml
ProcessEngineConfiguration processEngineConfiguration = processEngine.getProcessEngineConfiguration();
CommandExecutor commandExecutor = ((ProcessEngineConfigurationImpl) processEngineConfiguration).getCommandExecutor();
ProcessDefinitionEntity processDefinitionEntity = commandExecutor.execute(new Command<ProcessDefinitionEntity>() {
public ProcessDefinitionEntity execute(CommandContext commandContext) {
return Context.getProcessEngineConfiguration()
.getDeploymentManager()
.findDeployedLatestProcessDefinitionByKey("MultipleQueue");
}
});
TaskDefinition taskDefinition = processDefinitionEntity.getTaskDefinitions().get("AlertQueueTask");
System.out.println(taskDefinition.getTaskFormHandler().createTaskForm(new TaskEntity()).getFormProperties());
List<FormProperty> formProperties = taskDefinition.getTaskFormHandler().createTaskForm(new TaskEntity()).getFormProperties();
for (FormProperty formProp : formProperties) {
System.out.println("form prop:"+ formProp.getId() +" type:"+ formProp.getType()+" default value:"+formProp.getValue());
}
04-01-2015 07:25 AM
04-24-2015 01:02 PM
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.