03-05-2012 10:58 AM
@Property(type = PropertyType.TEXT, displayName = "Message Type", required = true, defaultValue = "Status")
@Help(displayHelpShort = "Text string indicating event type")
private String eventType;
@Property(type = PropertyType.TEXT, displayName = "Text", required = true, defaultValue = "Status from Workflow")
@Help(displayHelpShort = "Text")
private String eventText;
<activiti:field name="eventType">
<activiti:string>Status</activiti:string>
</activiti:field>
<activiti:field name="eventText">
<activiti:string>Starting Denoising workflow for ${BOKey} with tags ${Tags} – Has Denoise? ${Tags.containsKey("Denoise")}</activiti:string>
</activiti:field>
<activiti:field name="eventType">
<activiti:string>status</activiti:string>
</activiti:field>
<activiti:field name="eventText">
<activiti:expression>Starting Denoising workflow for ${BOKey} with tags ${Tags} – Has Denoise? ${Tags.containsKey("Denoise")}</activiti:expression>
</activiti:field>
03-05-2012 04:57 PM
03-06-2012 07:44 AM
03-19-2012 08:18 AM
03-19-2012 08:40 AM
I added a short Patch to get this feature in http://jira.codehaus.org/browse/ACT-968.
Expression createEvaluatingExpression(Expression e) {
// NB: This is a bit of a hack to make expressions work properly
ExpressionManager expressionManager = Context.getProcessEngineConfiguration().getExpressionManager();
if (e == null) {
return expressionManager.createExpression("<null>");
} else {
return expressionManager.createExpression(e.getExpressionText());
}
}
Expression localText = createEvaluatingExpression(eventText);
logger.debug("eventText " + localText.getExpressionText() + " eval " + localText.getValue(execution));
03-19-2012 09:25 AM
I'm not sure. Maybe this results in unnecessary expression parsing. I tryed to get the same behavior as in FieldExtensionsExport:I added a short Patch to get this feature in http://jira.codehaus.org/browse/ACT-968.Very helpful. Would it be best to always use an expression?
[…]
if (fieldExtension.getExpression().contains("${")) {
xtw.writeStartElement(ACTIVITI_EXTENSIONS_PREFIX, "expression", ACTIVITI_EXTENSIONS_NAMESPACE);
} else {
xtw.writeStartElement(ACTIVITI_EXTENSIONS_PREFIX, "string", ACTIVITI_EXTENSIONS_NAMESPACE);
}
[…]
03-19-2012 01:30 PM
11-20-2012 03:42 AM
11-20-2012 03:48 AM
11-20-2012 06:40 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.