problem with field configuration with assignment and decisio
brianmb99 Feb 15, 2006 8:39 PMHello,
I use the field configuration feature for many of my action handlers (example:
<event type="node-enter"> <action name="do my action" class="com.mycompany.MyActionHandler"> <myactionclassfieldname>value</myactionclassfieldname> </action> </event>)
which works great, but I want to do the same thing with AssignmentHandlers and DecisionHandlers. I'm using graphical editor 3.0.5, which lets me configure fields for assignment handlers, generating:
<task name="my task name"> <assignment class="com.mycompany.MyAssignmentHandler" config-type="bean"> <myassignmentclassfieldname>test</myassignmentclassfieldname> </assignment> </task>
but when I try to deploy this processdef (using v 3.0.2 - I'm not ready to upgrade yet) I'm confronted with:
[deploypar] 17:23:17,337 DEBUG JpdlXmlReader : process definition line 27: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'myassignmentclassfieldname'.
and the following stack trace:
[deploypar] at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:119) [deploypar] at org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:27) [deploypar] at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:46) [deploypar] at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.java:154) [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployZipInputStream(ProcessArchiveDeployer.java:46) [deploypar] at org.jbpm.ant.DeployParTask.deploy(DeployParTask.java:69) [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:38) [deploypar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [deploypar] at org.apache.tools.ant.Task.perform(Task.java:364) [deploypar] at org.apache.tools.ant.Target.execute(Target.java:341) [deploypar] at org.apache.tools.ant.Target.performTasks(Target.java:369) [deploypar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [deploypar] at org.apache.tools.ant.Main.runBuild(Main.java:668) [deploypar] at org.apache.tools.ant.Main.startAnt(Main.java:187) [deploypar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) [deploypar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67).
I've also tried configuring decisionhandlers this way by hand-editing the jpdl with the same result. I've tried using bean config instead of field config with the same result.
Is this just not supported by the schema despite the graphical editor's willingness to write the xml this way? Or is there something I'm missing?
Thanks!
-Brian