RE: Participant vs Assignment
"Dahl, Greg (BLM) - contr" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <A8155E0D38B9D84D88EAC58C2D8F47BA05889AC4@blmms060.accounts.root.corp> |
Thanks Vladimir! This is exactly the information I was looking for! Greg > -----Original Message----- > From: Vladimir Puskas [mailto:[email protected]] > Sent: Thursday, July 07, 2005 2:48 AM > To: [email protected] > Subject: Re: [shark] Participant vs Assignment > > > Hello Greg > > you wrote: > > As far as #2 goes, I finally stumbled on > > sharkExecutionAdministration.getResource(newUser); > > > > I'd still like to find answers to #1 and #3 though. > >> > >> #1) We have a pretty simple workflow that only requires one person > >> for each activity. If that person is busy, we want the > activity to > >> show up in someone else's worklist however. Does this mean we're > >> changing the assignment or changing the participant? > > XPDL spec at [1] says: "Workflow Participant Declaration provides > descriptions of resources that can act as the performer of > the various > activities in the process definition... The workflow participant > declaration does not necessarily refer to a human or a single person, > but may also identify a set of people of appropriate skill or > responsibility, or machine ..." > > [2] "OMG definition: WfAssignment links WfActivity objects to > WfResource > objects... Assignments are created as part of the resource selection > process before an activity becomes ready for execution..." > > >> #3) What does the WfResource.release(assignment, > activity_id); method > >> do? I thought it would break the connection between a > WfResource and > >> a WfAssignment. But, even after I called the > >> release() method, the activity still shows in the WfResrouce's > >> get_sequence_work_item() response. > > You thought almost right - it does break connection between > WfResource > and *WfActivity*. The reason you *again* see "the same" > WfAssignment is > it has been recreated. See event audits attached or history of the > process (admin application->process monitor tab->show history button) > > Shark kernel, on WfAssignment rejection or when creating WfActivity, > looks if its XPDL definition has performer, evaluates it, > looks through > participant-user mappings, than asks assignment manager with all > information gathered to respond with a List of WfResources > who will be > assigned to WfActivity. > > AFAICS your best option would be to implement > AssignementManager[3] that > would search for next available/idle person who will receive > assignment. > > [1] http://wfmc.org/standards/docs/TC-1025_10_xpdl_102502.pdf > [2] > http://shark.objectweb.org/doc/1.1/api/SharkAPI/org/enhydra/sh ark/api/client/wfmodel/WfAssignment.html [3] http://shark.objectweb.org/doc/1.1/api/SharkAPI/org/enhydra/shark/api/in ternal/assignment/AssignmentManager.html hope this helps -- Vlada ******* Confidentiality Notice ******* This email, its electronic document attachments, and the contents of its website linkages may contain confidential health information. This information is intended solely for use by the individual or entity to whom it is addressed. If you have received this information in error, please notify the sender immediately and arrange for the prompt destruction of the material and any accompanying attachments.
message.footer
(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