work.setName( "MyWork" );
workItemNode.setWork( work );
ActionNode actionNode = new ActionNode();
actionNode.setName( "Print" );
DroolsAction action = new DroolsConsequenceAction( "java" , null);
action.setMetaData( "Action" , new Action() {
public void execute(ProcessContext context) throws Exception {
Assert.assertEquals( variableText , ((MyVariableExtendingSerializable) context.getVariable( "x" )).getText()); ;
}
});
actionNode.setAction(action);