Fix missing ports
This commit is contained in:
parent
acd447cfc1
commit
ae09881508
|
|
@ -52,7 +52,7 @@ export class DefaultActivityTemplate {
|
|||
{({nodeMap}) => {
|
||||
const activity: Activity = nodeMap[activityId];
|
||||
const ports = portProvider.getOutboundPorts({activityDescriptor, activity});
|
||||
const embeddedPorts = ports.filter(x => x.mode == PortMode.Embedded && x.isBrowsable);
|
||||
const embeddedPorts = ports.filter(x => x.mode == PortMode.Embedded && x.isBrowsable !== false);
|
||||
const canStartWorkflow = activity?.canStartWorkflow;
|
||||
const icon = this.icon;
|
||||
const hasIcon = !!icon;
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export class ToolboxActivities {
|
|||
|
||||
buildModel = (): any => {
|
||||
const browsableDescriptors = uniqBy(descriptorsStore.activityDescriptors
|
||||
.filter(x => x.isBrowsable)
|
||||
.filter(x => x.isBrowsable !== false)
|
||||
.sort((a, b) => a.version > b.version ? 1 : -1), x => `${x.typeName}:${x.version}`);
|
||||
|
||||
const categorizedActivitiesLookup = groupBy(browsableDescriptors, x => x.category);
|
||||
|
|
|
|||
|
|
@ -81,10 +81,12 @@ function walkRecursive(node: ActivityNode, activity: Activity, collectedActiviti
|
|||
}
|
||||
|
||||
if (childNode !== node) {
|
||||
childNode.parents.push(node);
|
||||
node.children.push(childNode);
|
||||
collectedActivities.add(port.activity);
|
||||
walkRecursive(childNode, port.activity, collectedActivities, collectedNodes, descriptors);
|
||||
if(!!childNode.activity) {
|
||||
childNode.parents.push(node);
|
||||
node.children.push(childNode);
|
||||
collectedActivities.add(port.activity)
|
||||
walkRecursive(childNode, port.activity, collectedActivities, collectedNodes, descriptors);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -104,9 +106,6 @@ function getPorts(node: ActivityNode, activity: Activity, descriptors: Array<Act
|
|||
for (const port of ports) {
|
||||
const value = portProvider.resolvePort(port.name, portProviderContext);
|
||||
|
||||
if (!value)
|
||||
continue;
|
||||
|
||||
if (Array.isArray(value)) {
|
||||
const activities = value as Array<Activity>;
|
||||
activityPorts = [...activityPorts, ...activities.map(x => ({port: port.name, activity: x}))];
|
||||
|
|
|
|||
Loading…
Reference in a new issue