else
{
// [TODO: optimize by prefabricating the NetworkImpl]
NetworkImpl network = new NetworkParser().parse(replaceWorkflow.getBytes());
// Returns the Workflow.
return new WorkflowImpl(new ResultImpl(context, true, true, new DataImpl(head.getBytes()), null), network);
}
}
else
{
// [TODO: optimize by prefabricating the NetworkImpl]
NetworkImpl network = new NetworkParser().parse(replaceWorkflow.getBytes());
// Returns the Workflow.
return new WorkflowImpl(new ResultImpl(context, true, true, context.in_1_link().content(), null), network);
}
}
else
{
throw new Exception("first input needs to be full");