[jboss-jira] [JBoss JIRA] Created: (JBPM-770) Option to Not Signal a Sub-Process in the Process-State Node
Jed Danner (JIRA)
jira-events at jboss.com
Thu Oct 26 11:25:41 EDT 2006
Option to Not Signal a Sub-Process in the Process-State Node
------------------------------------------------------------
Key: JBPM-770
URL: http://jira.jboss.com/jira/browse/JBPM-770
Project: JBoss jBPM
Issue Type: Feature Request
Components: Core Engine
Affects Versions: jBPM 3.1.2
Environment: Feature request.
Reporter: Jed Danner
Assigned To: Tom Baeyens
Priority: Minor
I've found a case where I'd like to start a sub-process from a process but I don't want to signal it immediately. There is an external source which will handle that signalling. I've made some modifications to the ProcessState.java file, as such:
Added a new class member:
protected boolean signalProcess = true;
Added a check in the read method:
String signalText = subProcessElement.attributeValue("signal");
if (signalText!=null) {
if (("no".equalsIgnoreCase(signalText))
|| ("false".equalsIgnoreCase(signalText)) ) {
signalProcess = false;
}
}
Added a check in the execute method (right before the signal):
if (!signalProcess)
return;
Added a new method:
public boolean getSignalProcess() {
return signalProcess;
}
And updated the jpdl-3.1.xsd and jpdl-3.0.xsd files (wasn't sure if I needed to do both).
What I see is when the process is deployed, the read method see my new attribute and sets it to 'false' as I want. But when the process comes along and I get into the execute method the value of signalProcess is 'true'.
I'm thinking there is another step I need to take but don't know what it is. If someone can take a look or provide a pointer (And finds this feature request useful) - it'd be great to have it integrated.
Thanks!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list