use TeamSite::WFsystem;$debug_file = "wf.xml";$data = "";open INFILE, "<$debug_file"; while ($record = ) { $data .= $record; }close INFILE;my $wf_system = TeamSite::WFsystem->new();my $wf = $wf_system->CreateWorkflow($data); if ((!defined $wf) || !$wf->IsValid() || $wf->GetError()) { print $wf->GetError(); } else {$wf->Invoke(); print "No Error\n"; }
I try the following sample code from doc.no error come out however I cannot see the job in Teamsite too, - wf.xml is XML workflow file.use TeamSite::WFsystem;$debug_file = "wf.xml";$data = "";open INFILE, "<$debug_file"; while ($record = ) { $data .= $record; }close INFILE;my $wf_system = TeamSite::WFsystem->new();my $wf = $wf_system->CreateWorkflow($data); if ((!defined $wf) || !$wf->IsValid() || $wf->GetError()) { print $wf->GetError(); } else { print "No Error\n"; }