What Happens When You Develop a Guided Business Process Application with Oracle ADF

Building a Guided Business Process Client Application 25-11 throws Exception { String agDefinitionId = HelpDeskRequestSCAAppHelpDeskRequestComposite1.02007-10-22_13-32-50_ 536HelpDeskRequestProcessHelpDeskRequestProcess.ag; Need to supply a valid AG definition id here AGDefinition agDefinition = wfSvcClient.getAGMetadataService.getAGDefinitionById sJCooperCtx, agDefinitionId; if agDefinition = null { System.out.printlnag def obtained; System.out.printlnag def name: + agDefinition.getName; System.out.printlnag def milestone display mode: + agDefinition.getMilestoneDisplayMode; } } private static void testGetAGResourceBundleInfo throws Exception { String agDefinitionId = HelpDeskRequestSCAAppHelpDeskRequestComposite1.02007-10-22_13-32-50_ 536HelpDeskRequestProcessHelpDeskRequestProcess.ag; Need to supply a valid AG definition id here ResourceBundleInfo resourceBundleInfo = wfSvcClient.getAGMetadataService.getResourceBundleInfosJCooperCtx, agDefinitionId, sJCooperCtx.getLocale; System.out.printlnbundle name: + resourceBundleInfo.getName; } private static void testQueryAGDisplayInfos throws Exception { List agQueryColumns = new ArrayList; agQueryColumns.addMILESTONE_STATE; agQueryColumns.addDEFINITION_ID; Query for all AG instances belonging to user jcooper List agDisplayInfoList = wfSvcClient.getAGQueryService.queryAGDisplayInfossJCooperCtx, agQueryColumns, IAGQueryService.AGAssignmentFilter.MY, null, agPredicate, null, ordering, 0, 0; System.out.printlnag display info list size: + agDisplayInfoList.size; if agDisplayInfoList.size 0 { AGDisplayInfo agDisplayInfo = AGDisplayInfo agDisplayInfoList.get0; System.out.printlnAG title: + agDisplayInfo.getTitle; System.out.printlnmilestone display info list size: + agDisplayInfo.getMilestoneDisplayInfo.size; for int i=0; i agDisplayInfo.getMilestoneDisplayInfo.size; i++ 25-12 Modeling and Implementation Guide for Oracle Business Process Management { System.out.printlni = + i + milestone display info: + MilestoneDisplayInfo agDisplayInfo.getMilestoneDisplayInfo.geti.getMilestoneInstance.getName; } } } private static void testQueryAGDisplayInfoDetailsById throws Exception { long cikey = 1; Need to supply a valid AG cikey here List taskQueryColumns = new ArrayList; taskQueryColumns.addTASKID; taskQueryColumns.addTITLE; taskQueryColumns.addOUTCOME; AGDisplayInfo agDisplayInfo = wfSvcClient.getAGQueryService.getAGDisplayInfoDetailsById sJCooperCtx, cikey, taskQueryColumns; System.out.printlnAG display info status: + agDisplayInfo.getAGInstanceInfo.getStatus; System.out.printlnAG display info bpel status: + agDisplayInfo.getAGInstanceInfo.getBpelStatus; } private static void testQueryAGMilestoneDisplayInfo throws Exception { long cikey = 1; Need to supply a valid AG cikey here String milestoneName = ApprovePricing; Need to supply a valid AG milestone name here List taskQueryColumns = new ArrayList; taskQueryColumns.addTASKID; taskQueryColumns.addTITLE; taskQueryColumns.addOUTCOME; MilestoneDisplayInfo milestoneDisplayInfo = null; milestoneDisplayInfo = wfSvcClient.getAGQueryService.getMilestoneDisplayInfo sJCooperCtx, cikey, milestoneName, taskQueryColumns; System.out.printlnmilestone display info name: + milestoneDisplayInfo.getMilestoneInstance.getName; System.out.printlnmilestone display info title: + milestoneDisplayInfo.getTitle; System.out.printlnmilestone display info task list size: + milestoneDisplayInfo.getTask.size; } } For more information regarding the EJB and Web Service APIS, see the Javadoc.