org.jbpm.services.api

## Interface AdHocProcessService

- All Known Implementing Classes:
    AdHocProcessServiceCDIImpl, AdHocProcessServiceImpl

      public interface AdHocProcessService

  Created by salaboy on 06/05/15.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Long` | `startProcess(String deploymentId, String processId, org.kie.internal.process.CorrelationKey correlationKey, Map<String,Object> params, Long parentProcessInstanceId)` Starts a process with a map of variables

- - ### Method Detail

    - #### startProcess

          Long startProcess(String deploymentId,
                          String processId,
                          org.kie.internal.process.CorrelationKey correlationKey,
                          Map<String,Object> params,
                          Long parentProcessInstanceId)

      Starts a process with a map of variables
      Parameters:
        `deploymentId` - deployment information for the process's kjar
        `processId` - The process's identifier
        `correlationKey` - correlation key to be assigned to process instance - must be unique
        `params` - process variables
      Returns:
        process instance identifier
      Throws:
        `RuntimeException` - in case of encountered errors
        `DeploymentNotFoundException` - in case deployment with given deployment id does not exist or is not active

Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.