added an optional param to pass in 'objectType' for the workflow.
This commit is contained in:
parent
f12b0751e6
commit
b0646e4358
1 changed files with 2 additions and 1 deletions
|
|
@ -54,10 +54,11 @@ sub create {
|
|||
my $workflow = WebGUI::Workflow->create($session,
|
||||
{
|
||||
enabled => 1,
|
||||
objectType => 'None',
|
||||
objectType => $activityParams->{objectType} || 'None',
|
||||
mode => 'realtime',
|
||||
},
|
||||
);
|
||||
delete $activityParams->{objectType};
|
||||
my $activity = $workflow->addActivity($activityClass);
|
||||
if( scalar( keys %$activityParams ) > 0 ) {
|
||||
$activity->set(%$activityParams);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue