Re: {Spam?} Re: {Spam?} Re: Multiple Process Instant
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <OF6FC91864.9996DD99-ON85257049.004CF6B9-85257049.004E3BFE@intellicare.com> |
Frans,
I am pretty sure I know why you are getting this error. It is because you
are passing the same "processId" in both times. The first time of course
it is ok , but teh second time round you will get stuck in the
isProcessRunning question. So here's what I have done and it works fine,
but maybe somebody may point out this is bad practice..
I removed the "!(isProcessRunning)" clause out (and if you are using my
code, I don't know how come you are getting stuck there!) and the
arguments for the pkgId and procId I took from the xpdl of the process in
question. (I found a few problems with JSPUtilities so I don't use that
class as-is.)
In my case, my xpdl looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<Package Id="WellnessDemo2"...etc..
...etc...
<WorkflowProcesses>
<WorkflowProcess AccessLevel="PUBLIC" Id="
WellnessEvaluationProcess2"...etc...
</WorkflowProcess>
</WorkflowProcesses>
..
</Package>
and my call uses "WellnessDemo2" for pkgId and "WellnessEvaluationProcess2
" for processId in the calls for processCreate and
createProcessAndUpdateVariables. There was a note in the mail archives
which was written a while back where this was suggested. (I cannot find it
now though..)
Hth,
Geeta
Frans Thamura <[email protected]>
07/25/2005 09:54 AM
Please respond to
[email protected]
To
[email protected]
cc
Subject
{Spam?} Re: {Spam?} Re: [shark] Multiple Process Instant
[email protected] wrote:
>
> Hi Frans,
>
> I have a web application with a link which you can click on multiple
> times, so you can defintely create multiple process instances. The
> code I gave you earlier for createProcessAndUpdateVariables and
> proceeCreate is what i use and it works fine. What exactly is the
> error you are getting?
I am still working with your code here.
I am using JSPClient, and there is no error there, when the ea is
executed. the shark is not create the new instance.
i find several bugs in JSP Client, and if i try to execute or add new
instant for the WRD sample, they said process is not exist :) how can
exist , i never success create it.
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