A fairly standard thing to do would be to create a workflow with 2 tasks.
Each task invokes a method on the object type.
The first task creates the object using and edit method and the second task
edit/approves the object using an edit_approve method. Either of these
method handlers could call a PLP as you suggested. In the action area of
the edit_approve method you would check if the object had been approved and
if not use cfa_taskredo to go back to the previous step.
Spike
At 19:14 28/04/2001 Saturday, you wrote:
>This, or some version of it, may have been asked in the past, but I didn't
>find a thread addressing this exact situation.
>
>We're using a PLP to edit content items (CI's) because the CI's require a
>multi-step process. I need to control the PLP -- or at least would like to
>do notifications about it -- using a workflow.
>
>For example, suppose an Editor finishes editing the CI (using the PLP). I
>now want a workflow to send notification to the Publisher that she needs to
>review and okay/not okay publication.
>
>The Publisher, when she receives notification that the CI is ready to be
>reviewed will kick off her task which will invoke the edit CI PLP (because
>she has access to edit it too). When the Publisher runs the PLP, it will
>display an additional button, not available to editors, that allows the
>Publisher to publish the CI.
>
>The Publisher may 'not okay' the CI in which case notification should be
>sent back to the Editor. Given that scenario, it seems that the first step
>of the above (the Editor editing the CI) should also be driven by a step of
>a workflow.
>
>In that case, that seems to argue for the creation of a workflow when the
>Editor says he wants to edit a CI. When the workflow starts, the first step
>would NOT send a notification (since the Editor obvious knows he wants to
>edit something:-) ) but would invoke the PLP.
>
>Then, when the Publisher sends the CI back to the Editor to do more edits,
>the first step will need to send notification. It will also need to invoke
>the PLP again when the Editor starts the task.
>
>What this seems to require is the ability to kick off a PLP from within a
>workflow task step. I'm not sure the best way to do this since the only
>action a task can take is to invoke a method on an object -- and there is no
>obvious object here. We have the object that is being edited, but it seems
>odd to invoke a method on that object as the only action would be to invoke
>the PLP. That seems potentially confusing.
>
>Another approach might be to use an 'artifactless' workflow and just write
>specialized code that kicks off the PLP when the individual tasks start.
>When the PLP ends, then the PLP would need to send a message back to code
>that would end the task and refresh the workflow.
>
>Hopefully, the above makes sense. Anyone have experience with this kind of
>thing and, if so, any suggestions on best practices?
>
>Thanks!
>
>David
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.