@Override public IGraph build() { for (final AggregatedInvocation invocation : this.executionModel.getAggregatedInvocations().values()) { this.handleInvocation(invocation); } return this.graph; }
protected void addExecution(final DeployedOperation source, final DeployedOperation target) { final ComposedKey<DeployedOperation, DeployedOperation> key = ComposedKey.of(source, target); if (!this.executionModel.getAggregatedInvocations().containsKey(key)) { final AggregatedInvocation invocation = this.factory.createAggregatedInvocation(); invocation.setSource(source); invocation.setTarget(target); this.executionModel.getAggregatedInvocations().put(key, invocation); } }
public static final Function<OperationCall, Object> createForAggregatedInvocation(final ExecutionModel executionModel) { return operationCall -> { // Check if operationCall is an entry operation call. If so than source is null final DeployedOperation source = operationCall.getParent() != null ? operationCall.getParent().getOperation() : null; // NOCS (declarative) final DeployedOperation target = operationCall.getOperation(); final ComposedKey<DeployedOperation, DeployedOperation> key = ComposedKey.of(source, target); return executionModel.getAggregatedInvocations().get(key); }; }
.getExecutionModel().getAggregatedInvocations();