Skip to content
Snippets Groups Projects
Commit e7ba82f9 authored by S.Listl's avatar S.Listl
Browse files

Workflow start serial action fix

parent 27950cb2
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,11 @@ var variables = JSON.parse(vars.getString("$param.ProcessVariables_param"));
var targetIdFilter = vars.get("$param.TargetIdFilter_param") ? JSON.parse(vars.getString("$param.TargetIdFilter_param")) : null;
var processKey = vars.get("$local.rowdata")["KEY.value"];
if (targetIdFilter)
if (Array.isArray(variables.targetId) && variables.targetId.length > 0)
_startForIds(variables.targetId.slice(), variables);
else if (variables.targetId)
_startForIds([variables.targetId], variables);
else if (targetIdFilter)
{
var entity = ContextUtils.getEntity(variables.targetContext);
var loadConfig = entities.createConfigForLoadingRows()
......@@ -28,10 +32,6 @@ if (targetIdFilter)
_startForIds(targetIds, variables);
}
}
else if (Array.isArray(variables.targetId))
_startForIds(variables.targetId.slice(), variables);
else
_startForIds([variables.targetId], variables);
function _startForIds (pTargetIds, pVariables)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment