11-20-2012 11:18 AM
<businessRuleTask id="businessRuleTask" activiti:class="${MyRuleServiceDelegate}" />
<serviceTask id="javaService2" name="Java service invocation" activiti:class="${testVariable}"></serviceTask>
Multiple annotations found at this line:
- cvc-attribute.3: The value '${testVariable}' of attribute 'activiti:class' on element 'serviceTask' is not valid with respect to its type, 'null'.
- cvc-pattern-valid: Value '${testVariable}' is not facet-valid with respect to pattern '([a-z]{2,3}(\.[a-zA-Z][a-zA-Z_$0-9]*)*)\.([A-Z][a-zA-Z_$0-9]*)' for type '#AnonType_class'.
11-20-2012 02:27 PM
11-21-2012 04:45 AM
GRAVE: Error while closing command context
org.activiti.engine.ActivitiException: couldn't instantiate class ${testVariable}
11-21-2012 04:50 AM
activiti:class="${testVariable}"
11-21-2012 06:02 AM
public class SetterTest implements JavaDelegate {
private static final String VARIABLE_NAME = "toto";
public void execute(DelegateExecution execution) {
String var = "org.activiti.MyClass";
execution.setVariable(VARIABLE_NAME, var);
}
}
- And the second javaServiceTask would call the toto variable class.11-21-2012 06:39 AM
11-21-2012 07:17 AM
GRAVE: Error while closing command context
org.activiti.engine.ActivitiException: Delegate expression ${myVariable.execute()} did not resolve to an implementation of interface org.activiti.engine.impl.pvm.delegate.ActivityBehavior nor interface org.activiti.engine.delegate.JavaDelegate
11-21-2012 07:47 AM
11-21-2012 07:55 AM
public class ManagerTest implements Serializable, JavaDelegate {
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
public void execute(DelegateExecution arg0) throws Exception {
int a = 1;
}
public void test() throws Exception {
int a = 1;
}
}
11-22-2012 03:55 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.