Greetings all-

I am having difficulty getting the order of processing to work as desired
for my workflow task which calls a PLP in Spectra 1.5.1.  Here is a
description of the problem:

A simple workflow for the creation of new content objects is initiated which
in turn calls the first task.  The first task (createContent) calls a PLP
consisting of several steps for the creation of and editing of a content
object.  When I execute the code below I get the first step of the PLP,
however the workflow continues through without waiting on my submission for
that step.  The follow is the actual path of execution:

Creating instance of workflow...
Getting workflow instance...
Starting Workflow...
Mark Task as begun...
Executing Task...
        <PLP Step 1>
Refreshing Workflow...
Disco...

So, now I click the submit button for step 1 of the PLP and this is what I
get:

Refreshing Workflow...
Disco...

I would have expected to see:

Refreshing Workflow...
Disco...
        <PLP Step 2>


Although I would not have expected to se the 'Refreshing Workflow and Disco'
statements until I submitted step 1 of the PLP.

Any thoughts?

Nelson
[EMAIL PROTECTED]


++++++++++++++++++++++++++++++++++++++++++++++++++++++
My test code below:
++++++++++++++++++++++++++++++++++++++++++++++++++++++
<cfif URL.start>

        <!--- Create a Workflow --->
        <!--- we could create a workflow here, but the actual workflow and tasks
have been
                  created in the webTop.  The UUIDs are as follows: --->
        <cfset workflowTypeID = "D08BEC31-8AB7-4247-8866D33B5A7C611C">
        <!--- set CreateContent workFlow task type --->
        <cfset task1TypeID = "81E5F12B-DE19-4ED9-892623962731D152">

        Creating instance of workFlow...<br>
        <!--- create an instance of the workFlow --->
        <cfa_workflowinstancecreate
                datasource="#request.cfa.datasource.dsn#"
        workflowtypeid="#workflowTypeID#"
            bLockArtifact="True"
        name="Create Content: #dateFormat(now())# #timeFormat(now())#"
            Description="#request.cfa.activeuser# is creating/editing content..."
                priority="Medium"
                workflowDirector="#request.cfa.activeuser#"
                lTargetTaskTypeIDs="#task1TypeID#"
            r_WorkflowID="session.r_workflowID">

        Getting workflow instance...<br>
        <!--- get the workflow instance --->
        <cfa_workflowGetList
                datasource="#request.cfa.datasource.dsn#"
                workflowID="#session.r_workflowID#"
                r_stWorkflowAgenda="r_stWorklist">

        <!--- get the ObjectId for the task --->
        <cfloop collection="#r_stWorklist.tasks#" item="currtaskid">
          <cfif r_stWorklist.tasks[currtaskid].label eq "Create MHIA Content">
                <cfset session.task1ObjectID = "#currtaskid#">
          </cfif>
         </cfloop>

        Starting Workflow...<br>
        <!--- Start the workflow --->
        <cfa_workflowexecute
                datasource="#request.cfa.datasource.dsn#"
        workflowid="#session.r_workflowID#">


        Mark Task as begun...<br>
        <!--- mark the task as begun --->
        <cfa_taskBegin
                datasource="#request.cfa.datasource.dsn#"
                taskID = "#session.task1ObjectID#"
                workflowid="#session.r_workflowID#">

        Executing Task...<br>
        <!--- execute task --->
        <cfa_taskExecute
                datasource="#request.cfa.datasource.dsn#"
                taskID = "#session.task1ObjectID#">

        <CFLOCATION URL="createEditContent.cfm" ADDTOKEN="No">

<!--- start --->
</cfif>



Refreshing Workflow...<br>
<!--- refresh the workflow --->
<cfa_workflowexecute
        datasource="#request.cfa.datasource.dsn#"
    workflowid="#session.r_workflowID#"
        r_bTargetTaskEnd="isTargetTaskDone">

Disco...<br>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.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.

Reply via email to