org.camunda.bpm.bdd.steps
Class CamundaSteps

java.lang.Object
  extended by org.camunda.bpm.bdd.steps.CamundaSteps

public class CamundaSteps
extends Object

Generic Steps to control Camunda BPM from the test.

Author:
Simon Zambrovski, Holisticon AG.

Constructor Summary
CamundaSteps()
           
 
Method Summary
 void cleanUp()
          Clean up all resources.
 void deployProcess(String processDefinition)
           
 void init()
           
 void processFinishedSucessfully(String eventName)
           
 void processIsFinished()
          Process is finished.
 void startProcess(String processKey)
           
 void stepIsReached(String activityId)
          Process step reached.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CamundaSteps

public CamundaSteps()
Method Detail

init

@BeforeStory
public void init()

cleanUp

@AfterStory(uponGivenStory=false)
public void cleanUp()
Clean up all resources.


deployProcess

@When(value="the process definition $processDefinition")
@Given(value="the process definition $processDefinition")
public void deployProcess(String processDefinition)

startProcess

@When(value="the process $processKey is started")
public void startProcess(String processKey)

processIsFinished

@Then(value="the process is finished")
public void processIsFinished()
Process is finished.


processFinishedSucessfully

@Then(value="the process is finished with event $eventName")
public void processFinishedSucessfully(String eventName)

stepIsReached

@Then(value="the step $activityId is reached")
@When(value="the step $activityId is reached")
public void stepIsReached(String activityId)
Process step reached.

Parameters:
activityId - name of the step to reach.


Copyright © 2014 camunda services GmbH. All rights reserved.