RE: Activities/Steps question: 701_601_Bueinss_Exmaple_Work2
"Neville van Deventer" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <[email protected]> |
Hi Frans,
Creating a Process will not get you activity Keys,
Eg.
WfProcess userProcess = sConn.createProcess( "myPackageID",
"myProcessName");
String processKey = userProcess.key();
This will get you the Process Key, what I Do then is get the Active
Activities for the User
Eg.
WfAssignment[] ass =
sConn.getResourceObject().get_sequence_work_item( 0 );
for(int i=0;i<ass.length;i++) {
if( ass[i].activity().container().key().equals( processKey
)){
String keyOfActivity = ass[i].activity().key();
}
}
This code will get the current activity Key for the Process Started, I think
this can be done with ExpressionBuilders in Shark 1.1, but I Haven't had the
time to Update myself completely with the new API.
Hope this helps,
Neville van Deventer.
-----Original Message-----
From: Frans Thamura [mailto:[email protected]]
Sent: 25 July 2005 12:45 PM
To: [email protected]
Subject: Re: [shark] Activities/Steps question:
701_601_Bueinss_Exmaple_Work2
Neville van Deventer wrote:
>Hi Frans,
>
>The 701_601_ Is Pre-Pended, and is the Key's for the Process/Process Mgr.
>It is placedf there by the Shark Libraries, so that you can have
>Multiple Instances of the same Process, which needs to be unique somehow.
>
>
I want to capture this, do you know how?
so if I execute the processStart, it will return the activity id.
Frans
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