02-01-2013 01:36 AM
<userTask id="chooseAddName" name="Choose add Name" activiti:candidateGroups="st">
<extensionElements>
<activiti:formProperty id="addName" name="Add name" expression="#{stAppInfo.addName}" required="true" />
</extensionElements>
</userTask>
StAppInfo stInfo= new StAppInfo ();
Map<String, Object> variables = new HashMap<String, Object>();
variables.put("stAppInfo ", stInfo);
variables.put("addName", "Bernd Hauch");
02-19-2013 03:05 AM
org.activiti.engine.impl.persistence.entity.ExecutionEntity.setVariable() is applicable for argument types: (null) values: [null]
02-19-2013 03:48 AM
HistoricVariableUpdate stAppUpdate = ((HistoricVariableUpdate) historyVariables.get(0));
assertEquals("stAppInfo", stAppUpdate.getVariableName());
StAppInfo saii = (StAppInfo) stAppUpdate.getValue();
assertEquals("Bernd Hauch", saii.getAddName());
//But "saii.getAdvisorName()" is null….. Workaround for this is to add an additional service-task (or script-task) after the userTask, that does nothing more than call "execution.setVariable(execution.getVariable("stInfo"))".But it still doesn't work.
02-20-2013 08:22 AM
<scriptTask id="scrpt" name="Execute script" scriptFormat="groovy">
<script><![CDATA[
execution.setVariable("test", execution.getVariable("stAppInfo"));
]]></script>
</scriptTask>
02-20-2013 10:40 PM
02-21-2013 02:05 AM
02-21-2013 04:36 AM
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.