11-30-2012 04:48 AM
12-03-2012 07:39 AM
12-03-2012 06:09 PM
for (ActivityImpl activity : processDefinition.getActivities()) {
Map<String, Object> properties = activity.getProperties();
for (String key: properties.keySet()) {
…
if ("timerDeclarations".equals(key)) {
ArrayList<TimerDeclarationImpl> timerDeclarations = (ArrayList<TimerDeclarationImpl>)properties.get(key);
for (TimerDeclarationImpl timerDeclaration: timerDeclarations) {
// there I want to get expression of this timer declaration, for example is "P30D"
// but there is no getter for getting property that I need, it's private.
}
}
}
}What I actually do? I want to get from REST allactivities with all their properties. <intermediateCatchEvent id="timerintermediatecatchevent4" name="NO ANSWER (+3 HOUR)">
<timerEventDefinition>
<timeDate>${bpmTimer.adjust("+PT3H")}</timeDate>
</timerEventDefinition>
</intermediateCatchEvent>In JSON from rest I get this: {
"activityId": "timerintermediatecatchevent4",
"properties": {
"name": "TimerCatchEvent",
"line": 67,
"timerDeclarations": [{
"isExclusive": true,
"retries": "3",
"type": "timer-intermediate-transition",
"configuration": "timerintermediatecatchevent4"
}],
"type": "intermediateTimer"
},
"x": 464,
"y": 160,
"width": 35,
"height": 35
},I want to represent process definition in json.12-04-2012 04:21 AM
12-04-2012 08:53 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.