notifier.serviceInitialized(context, SERVICE_1);
notifier.serviceInitialized(context, SERVICE_2);
}
{
GenericNotifier notifier = NotifierFactory.createGenericNotifier();
InvocationEntity initiatingService = notifier.createEntity(null, SERVICE_0, null, null);
runWorkflow1(initiatingService, null, WORKFLOW_1, null, null);
}
// terminate workflow and service instances
{
WorkflowNotifier notifier = NotifierFactory.createWorkflowNotifier();
notifier.workflowTerminated(context, WORKFLOW_1);
notifier.serviceTerminated(context, SERVICE_1);
notifier.serviceTerminated(context, SERVICE_2);
}
}