I have been having some fun and games this afternoon trying to delete a task
dependency from within an active workflow. The system handler
'workflowinstdependencyremove.cfm' has a bug on lines 32 and 33 where
StructKeyExists(stTaskDependencies,taskID) should be
StructKeyExists(stObjectData.stTaskDependencies,taskID). I have re-logged
this with Spectra source as it was originally discovered by someone else in
2001.

Now it seems to me that 'workflowinstdependencyremove.cfm' removes the value
from stTaskDependencies but cfa_workflowShow reports that the key still
exists. Thus stTaskDependencies still has the key of the dependency but no
value.

This means that when I try to execute the Task I get;
Task: RejectItem ( E364FFA7-C11C-438A-92BE7715EA299F59 )
cannot be executed because there are dependent tasks that have not been
completed.

However the webtop is smart enough to know that this key has no value so it
shows the task as having no dependencies.

I am hoping that someone out there could look into this and either confirm
or reject my findings and suggest a fix. I suspect that lines 42 to 50 of
'workflowinstdependencyremove.cfm' might need to be changed.

Here is how to recreate the problem;

0. I suggest you fix lines 32 and 33 of 'workflowinstdependencyremove.cfm'
as above.
1. Create a workflow template with several tasks and make at least one task
dependent 'C' on another task 'B'. Assign an artifact type.
2. Write a handler for the artifact type that task 'B' will run. This
handler should use cfa_taskDependency action="Delete" to remove the
dependency that task 'C' has. Remember to refresh the workflow instance.
Next code a cfa_workflowshow tag. Then the handler should try to start and
execute task 'C'.
3. Look at the workflow instance in the WebTop and compare the dependencies
with those in stTaskDependencies as reported by cfa_workflowShow. Notice
that stTaskDependencies still has the key of the task but no value for the
dependency. This seems to result in an inability to execute that task.
4. Tell me if you have the same problem and may be suggest a fix.:)

Kind Regards


Dave Crosby
Project Manager
----------------------------------------------------------------------------
Delta Software Limited
"Global Thought, Local support"
Level 4, Bridgecorp House,
36 Kitchener Street,                 Phone:     ++64 9 309 9400
PO Box 7112,                         Fax:       ++64 9 309 9402
Auckland, New Zealand                Web Site:  http://www.delta.co.nz
----------------------------------------------------------------------------
Representing:
Gupta Technologies, Infra Corporation, Macromedia & Mercury Interactive.
----------------------------------------------------------------------------
CAUTION: If you are not the intended recipient you are notified that all
content is to be treated as confidential, and is not to be used, copied
or forwarded to third parties without the prior permission of the author.
If you have received this e-mail message in error please delete it and
notify me.  Thank you.
----------------------------------------------------------------------------


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
------------------------------------------------------------------------------
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