WORKFLOWAPP parentWorkflow = initializeProcessMapper(process, "12", "360");
testParentWorkflow(process, parentWorkflow);
List<Object> decisionOrForkOrJoin = parentWorkflow.getDecisionOrForkOrJoin();
ACTION pigActionNode = (ACTION) decisionOrForkOrJoin.get(3);
Assert.assertEquals("user-pig-job", pigActionNode.getName());
final PIG pigAction = pigActionNode.getPig();
Assert.assertEquals(pigAction.getScript(), "${nameNode}/falcon/staging/workflows/pig-process/user/id.pig");
Assert.assertNotNull(pigAction.getPrepare());
Assert.assertEquals(1, pigAction.getPrepare().getDelete().size());
Assert.assertFalse(pigAction.getParam().isEmpty());
Assert.assertEquals(5, pigAction.getParam().size());
Assert.assertEquals(Collections.EMPTY_LIST, pigAction.getArchive());
Assert.assertTrue(pigAction.getFile().size() > 0);
ACTION oozieAction = (ACTION) decisionOrForkOrJoin.get(5);
Assert.assertEquals("user-oozie-workflow", oozieAction.getName());
Assert.assertEquals("#USER_WF_PATH#", oozieAction.getSubWorkflow().getAppPath());
}