@Override public Batchlet substituteProperties(final Batchlet batchlet, final Properties submittedProps, final Properties parentProps) { //resolve all the properties used in attributes and update the JAXB model batchlet.setRef(this.replaceAllProperties(batchlet.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this batchlet if (batchlet.getProperties() != null) { this.resolveElementProperties(batchlet.getProperties().getPropertyList(), submittedProps, parentProps); } return batchlet; }
@Override public Batchlet substituteProperties(final Batchlet batchlet, final Properties submittedProps, final Properties parentProps) { //resolve all the properties used in attributes and update the JAXB model batchlet.setRef(this.replaceAllProperties(batchlet.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this batchlet if (batchlet.getProperties() != null) { this.resolveElementProperties(batchlet.getProperties().getPropertyList(), submittedProps, parentProps); } return batchlet; }
@Override public Batchlet substituteProperties(final Batchlet batchlet, final Properties submittedProps, final Properties parentProps) { //resolve all the properties used in attributes and update the JAXB model batchlet.setRef(this.replaceAllProperties(batchlet.getRef(), submittedProps, parentProps)); // Resolve all the properties defined for this batchlet if (batchlet.getProperties() != null) { this.resolveElementProperties(batchlet.getProperties().getPropertyList(), submittedProps, parentProps); } return batchlet; }
private void invokeBatchlet(Batchlet batchlet) throws BatchContainerServiceException { String batchletId = batchlet.getRef(); List<Property> propList = (batchlet.getProperties() == null) ? null : batchlet.getProperties().getPropertyList(); String sourceMethod = "invokeBatchlet"; if (logger.isLoggable(Level.FINER)) { logger.entering(sourceClass, sourceMethod, batchletId); } String exitStatus = null; InjectionReferences injectionRef = new InjectionReferences(jobExecutionImpl.getJobContext(), stepContext, propList); try { batchletProxy = ProxyFactory.createBatchletProxy(batchletId, injectionRef, stepContext); } catch (ArtifactValidationException e) { throw new BatchContainerServiceException("Cannot create the batchlet [" + batchletId + "]", e); } if (logger.isLoggable(Level.FINE)) logger.fine("Batchlet is loaded and validated: " + batchletProxy); if (wasStopIssued()) { logger.fine("Exit without executing batchlet since stop() request has been received."); } else { String processRetVal = batchletProxy.process(); logger.fine("Set process() return value = " + processRetVal + " for possible use as exitStatus"); stepContext.setBatchletProcessRetVal(processRetVal); logger.exiting(sourceClass, sourceMethod, exitStatus==null ? "<null>" : exitStatus); } }
private void invokeBatchlet(Batchlet batchlet) throws BatchContainerServiceException { String batchletId = batchlet.getRef(); List<Property> propList = (batchlet.getProperties() == null) ? null : batchlet.getProperties().getPropertyList(); String sourceMethod = "invokeBatchlet"; if (logger.isLoggable(Level.FINER)) { logger.entering(sourceClass, sourceMethod, batchletId); } String exitStatus = null; InjectionReferences injectionRef = new InjectionReferences(jobExecutionImpl.getJobContext(), stepContext, propList); try { batchletProxy = ProxyFactory.createBatchletProxy(batchletId, injectionRef, stepContext); } catch (ArtifactValidationException e) { throw new BatchContainerServiceException("Cannot create the batchlet [" + batchletId + "]", e); } if (logger.isLoggable(Level.FINE)) logger.fine("Batchlet is loaded and validated: " + batchletProxy); if (wasStopIssued()) { logger.fine("Exit without executing batchlet since stop() request has been received."); } else { logger.fine("Starting process() for the Batchlet Artifact"); String processRetVal = batchletProxy.process(); logger.fine("Set process() return value = " + processRetVal + " for possible use as exitStatus"); stepContext.setBatchletProcessRetVal(processRetVal); logger.exiting(sourceClass, sourceMethod, exitStatus==null ? "<null>" : exitStatus); } }
private void invokeBatchlet(Batchlet batchlet) throws BatchContainerServiceException { List<Property> propList = (batchlet.getProperties() == null) ? null : batchlet.getProperties().getPropertyList();
public static Batchlet cloneBatchlet(Batchlet batchlet){ Batchlet newBatchlet = jslFactory.createBatchlet(); newBatchlet.setRef(batchlet.getRef()); newBatchlet.setProperties(cloneJSLProperties(batchlet.getProperties())); return newBatchlet; }
public static Batchlet cloneBatchlet(Batchlet batchlet){ Batchlet newBatchlet = jslFactory.createBatchlet(); newBatchlet.setRef(batchlet.getRef()); newBatchlet.setProperties(cloneJSLProperties(batchlet.getProperties())); return newBatchlet; }
public static Batchlet cloneBatchlet(Batchlet batchlet){ Batchlet newBatchlet = jslFactory.createBatchlet(); newBatchlet.setRef(batchlet.getRef()); newBatchlet.setProperties(cloneJSLProperties(batchlet.getProperties())); return newBatchlet; }