This makes a couple of assumptions:1. A workflow can be automatically generated from an online form2. Optional steps can be added after a workflow has been created.Quite frankly, I don't see this in the workflow developer documentation and am not sure it is possible.Thoughts? Ideas? Jeers?Paul
use strict;use TeamSite::WFtask;use TeamSite::WFworkflow;my ($JobVariable, $JobId, $TaskId, $Workarea) = @ARGV;my $TaskObject = TeamSite::WFtask->new($TaskId);my $JobObject = TeamSite::WFworkflow->new($JobId);my $Successorset = $JobObject->GetVariable($JobVariable);chomp($Successorset);if ( (defined $Successorset) && ($Successorset) ){ if ($Successorset =~ m|\D|) { $Successorset = 1; }}else{ $Successorset = 0;}$TaskObject->CallBack($Successorset, '');
As far as my advice is concerned, is not of the nested workflow. Its only about a launcher workflow having a CGITASK picking up the values by functional manager, an EXTERNALTASK creating on the fly a job specifcation file based on the values and last the ENDTASK which activated as and when the external task comes to an end.
Also as of now, Paul has just provided one of his pre-requisites. Might be there are some more, so keeping them in mind i have suggested to use wfconstructor.pm
Anyways I am surprised to see such a long reply for a solution.