Tabnine Logo
JobSignalRequest.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
org.finra.herd.model.api.xml.JobSignalRequest

Best Java code snippets using org.finra.herd.model.api.xml.JobSignalRequest.getId (Showing top 16 results out of 315)

origin: FINRAOS/herd

  /**
   * Validates the job signal request. This method also trims request parameters.
   *
   * @param request the request
   *
   * @throws IllegalArgumentException if any validation errors were found
   */
  private void validateJobSignalRequest(JobSignalRequest request)
  {
    // Validate required elements
    Assert.hasText(request.getId(), "A job id must be specified.");
    Assert.hasText(request.getReceiveTaskId(), "A receive task id must be specified.");

    // Validate that parameter names are there and not duplicate
    parameterHelper.validateParameters(request.getParameters());

    if (request.getS3PropertiesLocation() != null)
    {
      s3PropertiesLocationHelper.validate(request.getS3PropertiesLocation());
    }

    // Remove leading and trailing spaces.
    request.setId(request.getId().trim());
    request.setReceiveTaskId(request.getReceiveTaskId().trim());
  }
}
origin: org.finra.herd/herd-service

  /**
   * Validates the job signal request. This method also trims request parameters.
   *
   * @param request the request
   *
   * @throws IllegalArgumentException if any validation errors were found
   */
  private void validateJobSignalRequest(JobSignalRequest request)
  {
    // Validate required elements
    Assert.hasText(request.getId(), "A job id must be specified.");
    Assert.hasText(request.getReceiveTaskId(), "A receive task id must be specified.");

    // Validate that parameter names are there and not duplicate
    parameterHelper.validateParameters(request.getParameters());

    if (request.getS3PropertiesLocation() != null)
    {
      s3PropertiesLocationHelper.validate(request.getS3PropertiesLocation());
    }

    // Remove leading and trailing spaces.
    request.setId(request.getId().trim());
    request.setReceiveTaskId(request.getReceiveTaskId().trim());
  }
}
origin: FINRAOS/herd

@Override
public Job signalJob(JobSignalRequest request) throws Exception
{
  // Perform the validation.
  validateJobSignalRequest(request);
  Execution execution = activitiService.getExecutionByProcessInstanceIdAndActivitiId(request.getId(), request.getReceiveTaskId());
  if (execution == null)
  {
    throw new ObjectNotFoundException(
      String.format("No job found for matching job id: \"%s\" and receive task id: \"%s\".", request.getId(), request.getReceiveTaskId()));
  }
  String processDefinitionKey = activitiService.getProcessInstanceById(execution.getProcessInstanceId()).getProcessDefinitionKey();
  checkPermissions(processDefinitionKey, new NamespacePermissionEnum[] {NamespacePermissionEnum.EXECUTE});
  // Retrieve the job before signaling.
  Job job = getJob(request.getId(), false, false);
  // Build the parameters map
  Map<String, Object> signalParameters = getParameters(request);
  // Signal the workflow.
  activitiService.signal(execution.getId(), signalParameters);
  // Build the parameters map merged with job and signal parameters.
  Map<String, Object> mergedParameters = new HashMap<>();
  for (Parameter jobParam : job.getParameters())
  {
    mergedParameters.put(jobParam.getName(), jobParam.getValue());
  }
  mergedParameters.putAll(signalParameters);
  // Update the parameters in job
  populateWorkflowParameters(job, mergedParameters);
  return job;
}
origin: org.finra.herd/herd-service

@Override
public Job signalJob(JobSignalRequest request) throws Exception
{
  // Perform the validation.
  validateJobSignalRequest(request);
  Execution execution = activitiService.getExecutionByProcessInstanceIdAndActivitiId(request.getId(), request.getReceiveTaskId());
  if (execution == null)
  {
    throw new ObjectNotFoundException(
      String.format("No job found for matching job id: \"%s\" and receive task id: \"%s\".", request.getId(), request.getReceiveTaskId()));
  }
  String processDefinitionKey = activitiService.getProcessInstanceById(execution.getProcessInstanceId()).getProcessDefinitionKey();
  checkPermissions(processDefinitionKey, new NamespacePermissionEnum[] {NamespacePermissionEnum.EXECUTE});
  // Retrieve the job before signaling.
  Job job = getJob(request.getId(), false, false);
  // Build the parameters map
  Map<String, Object> signalParameters = getParameters(request);
  // Signal the workflow.
  activitiService.signal(execution.getId(), signalParameters);
  // Build the parameters map merged with job and signal parameters.
  Map<String, Object> mergedParameters = new HashMap<>();
  for (Parameter jobParam : job.getParameters())
  {
    mergedParameters.put(jobParam.getName(), jobParam.getValue());
  }
  mergedParameters.putAll(signalParameters);
  // Update the parameters in job
  populateWorkflowParameters(job, mergedParameters);
  return job;
}
origin: org.finra.herd/herd-model-api

public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
  {
    String theId;
    theId = this.getId();
    strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null));
  }
  {
    String theReceiveTaskId;
    theReceiveTaskId = this.getReceiveTaskId();
    strategy.appendField(locator, this, "receiveTaskId", buffer, theReceiveTaskId, (this.receiveTaskId!= null));
  }
  {
    List<Parameter> theParameters;
    theParameters = ((this.parameters!= null)?this.getParameters():null);
    strategy.appendField(locator, this, "parameters", buffer, theParameters, (this.parameters!= null));
  }
  {
    S3PropertiesLocation theS3PropertiesLocation;
    theS3PropertiesLocation = this.getS3PropertiesLocation();
    strategy.appendField(locator, this, "s3PropertiesLocation", buffer, theS3PropertiesLocation, (this.s3PropertiesLocation!= null));
  }
  return buffer;
}
origin: FINRAOS/herd

public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
  {
    String theId;
    theId = this.getId();
    strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null));
  }
  {
    String theReceiveTaskId;
    theReceiveTaskId = this.getReceiveTaskId();
    strategy.appendField(locator, this, "receiveTaskId", buffer, theReceiveTaskId, (this.receiveTaskId!= null));
  }
  {
    List<Parameter> theParameters;
    theParameters = ((this.parameters!= null)?this.getParameters():null);
    strategy.appendField(locator, this, "parameters", buffer, theParameters, (this.parameters!= null));
  }
  {
    S3PropertiesLocation theS3PropertiesLocation;
    theS3PropertiesLocation = this.getS3PropertiesLocation();
    strategy.appendField(locator, this, "s3PropertiesLocation", buffer, theS3PropertiesLocation, (this.s3PropertiesLocation!= null));
  }
  return buffer;
}
origin: FINRAOS/herd

public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
  {
    String theId;
    theId = this.getId();
    strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null));
  }
  {
    String theReceiveTaskId;
    theReceiveTaskId = this.getReceiveTaskId();
    strategy.appendField(locator, this, "receiveTaskId", buffer, theReceiveTaskId, (this.receiveTaskId!= null));
  }
  {
    List<Parameter> theParameters;
    theParameters = ((this.parameters!= null)?this.getParameters():null);
    strategy.appendField(locator, this, "parameters", buffer, theParameters, (this.parameters!= null));
  }
  {
    S3PropertiesLocation theS3PropertiesLocation;
    theS3PropertiesLocation = this.getS3PropertiesLocation();
    strategy.appendField(locator, this, "s3PropertiesLocation", buffer, theS3PropertiesLocation, (this.s3PropertiesLocation!= null));
  }
  return buffer;
}
origin: org.finra.herd/herd-model-api

lhsId = this.getId();
String rhsId;
rhsId = that.getId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) {
  return false;
origin: FINRAOS/herd

lhsId = this.getId();
String rhsId;
rhsId = that.getId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) {
  return false;
origin: FINRAOS/herd

lhsId = this.getId();
String rhsId;
rhsId = that.getId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) {
  return false;
origin: FINRAOS/herd

public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
  int currentHashCode = 1;
  {
    String theId;
    theId = this.getId();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null));
  }
  {
    String theReceiveTaskId;
    theReceiveTaskId = this.getReceiveTaskId();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "receiveTaskId", theReceiveTaskId), currentHashCode, theReceiveTaskId, (this.receiveTaskId!= null));
  }
  {
    List<Parameter> theParameters;
    theParameters = ((this.parameters!= null)?this.getParameters():null);
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parameters", theParameters), currentHashCode, theParameters, (this.parameters!= null));
  }
  {
    S3PropertiesLocation theS3PropertiesLocation;
    theS3PropertiesLocation = this.getS3PropertiesLocation();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "s3PropertiesLocation", theS3PropertiesLocation), currentHashCode, theS3PropertiesLocation, (this.s3PropertiesLocation!= null));
  }
  return currentHashCode;
}
origin: org.finra.herd/herd-model-api

public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
  int currentHashCode = 1;
  {
    String theId;
    theId = this.getId();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null));
  }
  {
    String theReceiveTaskId;
    theReceiveTaskId = this.getReceiveTaskId();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "receiveTaskId", theReceiveTaskId), currentHashCode, theReceiveTaskId, (this.receiveTaskId!= null));
  }
  {
    List<Parameter> theParameters;
    theParameters = ((this.parameters!= null)?this.getParameters():null);
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parameters", theParameters), currentHashCode, theParameters, (this.parameters!= null));
  }
  {
    S3PropertiesLocation theS3PropertiesLocation;
    theS3PropertiesLocation = this.getS3PropertiesLocation();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "s3PropertiesLocation", theS3PropertiesLocation), currentHashCode, theS3PropertiesLocation, (this.s3PropertiesLocation!= null));
  }
  return currentHashCode;
}
origin: FINRAOS/herd

public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) {
  int currentHashCode = 1;
  {
    String theId;
    theId = this.getId();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null));
  }
  {
    String theReceiveTaskId;
    theReceiveTaskId = this.getReceiveTaskId();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "receiveTaskId", theReceiveTaskId), currentHashCode, theReceiveTaskId, (this.receiveTaskId!= null));
  }
  {
    List<Parameter> theParameters;
    theParameters = ((this.parameters!= null)?this.getParameters():null);
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "parameters", theParameters), currentHashCode, theParameters, (this.parameters!= null));
  }
  {
    S3PropertiesLocation theS3PropertiesLocation;
    theS3PropertiesLocation = this.getS3PropertiesLocation();
    currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "s3PropertiesLocation", theS3PropertiesLocation), currentHashCode, theS3PropertiesLocation, (this.s3PropertiesLocation!= null));
  }
  return currentHashCode;
}
origin: org.finra.herd/herd-model-api

if (idShouldBeCopiedAndSet == Boolean.TRUE) {
  String sourceId;
  sourceId = this.getId();
  String copyId = ((String) strategy.copy(LocatorUtils.property(locator, "id", sourceId), sourceId, (this.id!= null)));
  copy.setId(copyId);
origin: FINRAOS/herd

if (idShouldBeCopiedAndSet == Boolean.TRUE) {
  String sourceId;
  sourceId = this.getId();
  String copyId = ((String) strategy.copy(LocatorUtils.property(locator, "id", sourceId), sourceId, (this.id!= null)));
  copy.setId(copyId);
origin: FINRAOS/herd

if (idShouldBeCopiedAndSet == Boolean.TRUE) {
  String sourceId;
  sourceId = this.getId();
  String copyId = ((String) strategy.copy(LocatorUtils.property(locator, "id", sourceId), sourceId, (this.id!= null)));
  copy.setId(copyId);
org.finra.herd.model.api.xmlJobSignalRequestgetId

Javadoc

Gets the value of the id property.

Popular methods of JobSignalRequest

  • <init>
    Fully-initialising value constructor
  • getParameters
  • getReceiveTaskId
    Gets the value of the receiveTaskId property.
  • getS3PropertiesLocation
    Gets the value of the s3PropertiesLocation property.
  • setId
    Sets the value of the id property.
  • setParameters
  • setReceiveTaskId
    Sets the value of the receiveTaskId property.
  • setS3PropertiesLocation
    Sets the value of the s3PropertiesLocation property.
  • append
  • appendFields
  • copyTo
  • createNewInstance
  • copyTo,
  • createNewInstance,
  • equals,
  • hashCode

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now