@Override protected void invokeCoreStep() throws BatchContainerServiceException { try { invokeBatchlet(getStep().getBatchlet()); } finally { invokeCollectorIfPresent(); } }
@Override protected void invokeCoreStep() throws BatchContainerServiceException { //TODO If this step is partitioned create partition artifacts Partition partition = step.getPartition(); if (partition != null) { //partition.getConcurrencyElements(); } try { invokeBatchlet(step.getBatchlet()); } finally { invokeCollectorIfPresent(); } }
@Override protected void invokeCoreStep() throws BatchContainerServiceException { //TODO If this step is partitioned create partition artifacts Partition partition = step.getPartition(); if (partition != null) { //partition.getConcurrencyElements(); } try { invokeBatchlet(step.getBatchlet()); } finally { invokeCollectorIfPresent(); } }
Batchlet batchlet = step.getBatchlet(); if (batchlet != null) { if(logger.isLoggable(Level.FINER)) {
Batchlet batchlet = step.getBatchlet(); if (batchlet != null) { if(logger.isLoggable(Level.FINER)) {
Batchlet batchlet = step.getBatchlet(); if (batchlet != null) { if(logger.isLoggable(Level.FINER)) {
@Test public void testModelNoValidate() throws Exception { JAXBContext ctx = JAXBContext.newInstance("com.ibm.jbatch.jsl.model"); Unmarshaller u = ctx.createUnmarshaller(); FileInputStream fis = new FileInputStream(new File("test/files/valid.job1.xml")); // Use this for anonymous type //Job job = (Job)u.unmarshal(url.openStream()); // Use this for named complex type, which is what the spec uses. Object elem = u.unmarshal(fis); JSLJob job = (JSLJob)((JAXBElement)elem).getValue(); assertEquals("job1", job.getId()); assertEquals(1, job.getExecutionElements().size()); Step step = (Step)job.getExecutionElements().get(0); assertEquals("step1", step.getId()); Batchlet b = step.getBatchlet(); assertEquals("step1Ref", b.getRef()); }
@Test public void testModelValidate() throws Exception { JAXBContext ctx = JAXBContext.newInstance("com.ibm.jbatch.jsl.model"); Unmarshaller u = ctx.createUnmarshaller(); u.setSchema(ValidatorHelper.getXJCLSchema()); JSLValidationEventHandler handler = new JSLValidationEventHandler(); u.setEventHandler(handler); FileInputStream fis = new FileInputStream(new File("test/files/valid.job1.xml")); // Use this for anonymous type //Job job = (Job)u.unmarshal(url.openStream()); // Use this for named complex type, which is what the spec uses. Object elem = u.unmarshal(fis); assertFalse("XSD invalid, see sysout", handler.eventOccurred()); JSLJob job = (JSLJob)((JAXBElement)elem).getValue(); assertEquals("job1", job.getId()); assertEquals(1, job.getExecutionElements().size()); Step step = (Step)job.getExecutionElements().get(0); assertEquals("step1", step.getId()); Batchlet b = step.getBatchlet(); assertEquals("step1Ref", b.getRef()); }
if (step.getBatchlet() != null){ newStep.setBatchlet(CloneUtility.cloneBatchlet(step.getBatchlet()));
if (step.getBatchlet() != null){ newStep.setBatchlet(CloneUtility.cloneBatchlet(step.getBatchlet()));
if (step.getBatchlet() != null){ newStep.setBatchlet(CloneUtility.cloneBatchlet(step.getBatchlet()));
if (step.getBatchlet() != null) { PropertyResolverFactory.createBatchletPropertyResolver(this.isPartitionedStep).substituteProperties(step.getBatchlet(), submittedProps, currentProps);
if (step.getBatchlet() != null) { PropertyResolverFactory.createBatchletPropertyResolver(this.isPartitionedStep).substituteProperties(step.getBatchlet(), submittedProps, currentProps);
if (step.getBatchlet() != null) { PropertyResolverFactory.createBatchletPropertyResolver(this.isPartitionedStep).substituteProperties(step.getBatchlet(), submittedProps, currentProps);