Hi,
We have a complex workflow whereby around 20 Jobs are being created through a perl script at one time. At the time this script runs, the TeamSite Server is just frozen. For nearly 15 minutes, we cannot do any work on it.
Are there any ways the performance can be improved. We do have enough resources on the TS server which otherwise runs quite fast.
Would appreciate any help.
We are using TS Version: 5.0.1
Here is the part of the code which creates the job...
#################################################################
sub createJob {
#print "Template_file:" . $workflowfile;
my $wft = TeamSite::WFtemplate->new(
template => $workflowfile,
user => $workflowuser,
vpath => $vpath,
file => [],
debug => 0);
$wft->{tag}{'iw_user'}{value}="$workflowuser";
$wft->{tag}{'iw_branch'}{value}="$branch";
$wft->{tag}{'iw_workarea'}{value}="$vpath";
if (!defined $wft)
{
........
}else {
my
@field_name_set = $wft->get_tags();
my $spec = $wft->get_workflow();
if (!defined $spec)
{
........
}else{
my $wf_system = TeamSite::WFsystem->new();
if (!defined $wf_system)
{
........
} else {
$workflow = $wf_system->CreateWorkflow($spec,$tempworkflowfile);
if ((!defined $workflow) || !$workflow->IsValid() || $workflow->GetError())
{
........
}else {
my $firsttask = $workflow->Invoke();#$workflow = new TeamSite::WFworkflow($wf_id);
($success, $factbooktask) = $workflow->GetTaskByName($taskname);
$taskid = $factbooktask->GetId();
}
}
}
}
}
#################################################################