If trying to launch a flow using Perl API it fails with "DispatchingException : LaunchItem with workflowDefinitionUrl field not set. Cannot launch."
Because LaunchItem doesn't fill 'workflow-definition-url' field.
To fix if I propose:
in constructor of LaunchItem.pm right after:
my ($data) = XMLin( $rawXML, ForceArray => 1 );
to add following lines:
if ($launchItemURL =~ /localhost/)
{
$data->{'workflow-definition-url'} = $launchItemURL;
}
else
{
my ($workflowdefinition) = $launchItemURL =~ /.*(\:.*)$/;
$data->{'workflow-definition-url'} = "http://localhost".$workflowdefinition;
}
It looks like spooky, but it works for me.