DecisionId decisionId = new DecisionId(DecisionTarget.EXTERNAL_WORKFLOW, schedule.getWorkflowId());
addDecision(decisionId, new ChildWorkflowDecisionStateMachine(decisionId, schedule));
}
void handleStartChildWorkflowExecutionInitiated(HistoryEvent event) {
StartChildWorkflowExecutionInitiatedEventAttributes attributes = event.getStartChildWorkflowExecutionInitiatedEventAttributes();
String workflowId = attributes.getWorkflowId();
DecisionStateMachine decision = getDecision(new DecisionId(DecisionTarget.EXTERNAL_WORKFLOW, workflowId));
decision.handleInitiatedEvent(event);
}