its a strange thing. If I set a Task to autoexecute through the webtop
(which it needs to be to fill in DateBegin and thus be able to later
TaskEnd)
and then run workflowexecute to start the whole process off the task will
mark itself as Done and notify the next task immediately. At first I thought
it has something to do with the fact that my task was actually executing a
PLP, but it happens with any simple task I create. I can get round it by not
setting autoexecute and then programmatically forcing the Task Instance
DateBegin to a value with ContentObjectData but feel that I am missing a
concept by doing this.
The code is below.

<cfa_workflowinstancecreate
        datasource="#request.cfa.datasource.dsn#"
        workflowtypeid="1EE470BF-E1DF-4C11-898AEE1882364EE0"
        name="Template LO work flow instance"
        Description="LO WorkFlow Instance"
        r_WorkflowID="WorkFlowID">

<cfa_workflowgetlist
        dataSource="#request.cfa.datasource.dsn#"
    workFlowID="#workflowid#"
    r_stWorkflowAgenda="stWorkFlowagenda"
>

<cfa_workflowexecute
        datasource="#request.cfa.datasource.dsn#"
        workflowid="#WorkFlowID#">

Thanks
Emma Green

-----Original Message-----
From: Vinod Nair [mailto:[EMAIL PROTECTED]]
Sent: 21 February 2001 20:40
To: Spectra-Talk
Subject: RE: workflows



could you send out the code where you initiated the workflow.
-----Original Message-----
From: Emma
To: Spectra-Talk
Sent: 2/21/01 8:41 AM
Subject: workflows

hi. Every time I execute a workflow programmatically it is automatically
setting my first task to Done and notifying my second task. I can't see
what
the problem is. Does anyone have any ideas?
Emma Green
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.

Reply via email to