Evening all
I apologise for the long mail, but I have hit what seems a rather complex
problem which needs some background explanation.
Am using Spectra v1.5 on Solaris. We are in the process of porting a
workflow
system from a Spectra v1.01 system that was developed on NT.
One of the features is enabling the administrator to re-assign tasks to
other
users and then reset the workflow. This feature worked in the Spectra v1.01
version, but is barfing in v1.5
The code looks something like this:
--- start snippet ---
<cfif bResetWorkflow>
<!--- Reset the workflow --->
<cfa_workflowReset
datasource="#myDS#"
workflowid="#workflowID#"
>
<!--- Restart the workflow --->
<cfa_workflowExecute
datasource="#myDS#"
workflowid="#workflowID#"
>
</cfif>
--- end snippet ---
I have hacked around in cfa_workflowExecute and tracked the error to the
'workflowInstRefresh'
method for the 'workflowinstance' type.
Within this method there are the following declarations (~ line 40):
<cfscript>
stTasksFinished = stObjectData.stTasksFinished;
stTasksHaveNotified = stObjectData.stTasksHaveNotified;
</cfscript>
These two structs contain the same keys (taskIDs) and values (boolean), but
are used
for different purposes. However, it seems that when stTasksHaveNotified is
updated,
stTasksFinished is updated as well. As both of these variables are structs,
this implies
that they are sharing the same memory space.
I have even tried updating stObjectData.stTasksFinished and
stObjectData.stTasksHaveNotified
directly, but the same problem occurs.
Having trawled through the code for the best part of a day, I cannot find
the reason
for them sharing the same memory space and so am pleading for help.
1. Can anyone replicate this?
2. If so, any ideas?
Note: there is no problem with the tag when it is run on a newly created
workflow. It is only
when it is run on an existing workflow.
That is the brain-teaser for tonight, answers on a postcard please.
Cheers
Gareth
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.