Re: {Spam?} JSPClient How To: processStart
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <OF3DA2A33B.F9B58739-ON8525703C.0065FA8C-8525703C.00661557@intellicare.com> |
Hi Frans, I am not sure exactly what you are asking for but here's a
method that i use which may help you:
public void createProcessAndUpdateVariables(
String packageId, String processId, Map
variablesAndValues) throws BaseException, InvalidData, UpdateNotAllowed,
AlreadyRunning, CannotStart{
WfProcess process = processCreate(packageId, processId);
Map processContext = process.process_context();
Set allKeys = variablesAndValues.keySet();
Iterator iterator = allKeys.iterator();
while (iterator.hasNext()) {
String nextVariable = (String) iterator.next();
if (processContext.containsKey(nextVariable)){
processContext.put(nextVariable,
variablesAndValues.get(nextVariable));
process.set_process_context(processContext);
}
else {
throw new BaseException("variable " +
nextVariable + " not found as a variable for this process");
}
}
process.start();
}
Regards,
Geeta
Frans Thamura <[email protected]>
07/12/2005 02:25 PM
Please respond to
[email protected]
To
[email protected]
cc
Subject
{Spam?} [shark] JSPClient How To: processStart
Hi All,
I have a xPDL with several varible that want to be initialize,
I got the script in JSPClientUtilities named
JSPClientUtilitis.processsStart
and I try shark_retail, it works well.
I still need your all opinion here, how can those varibales can be put
into single vValue.
in
JSPClientUtilitys, I saw that to iniatite we need to click the combo of
package, and after that we must click accpet and complete where the task
list show up.
and all the variables filled in vValue.
I just still cannot find how can several variables become one vValue.
my job here is to try Shark, with this concept, create a script that can
be filled by variable.
I want to make a script that automatically intiate the process, accept
the process and fille the variables with my own variable, any idea of
this?
i
Frans
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
You receive this message as a subscriber of the [email protected]
mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
CONFIDENTIALITY NOTICE:This email is intended solely for the person or
entity to which it is addressed and may contain confidential and/or
protected health information. Any duplication, dissemination, action
taken in reliance upon, or other use of this information by persons or
entities other than the intended recipient is prohibited and may violate
applicable laws. If this email has been received in error, please notify
the sender and delete the information from your system. The views
expressed in this email are those of the sender and may not necessarily
represent the views of IntelliCare.
message-footer.txt
(text/plain, 271 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws