-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff18d4e
commit b321c7c
Showing
35 changed files
with
649 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 33 additions & 41 deletions
74
Client/Api/Commands/ICreateWorkflowInstanceCommandStep1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,58 @@ | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using Zeebe.Client.Api.Commands; | ||
using Zeebe.Client.Api.Commands; | ||
using Zeebe.Client.Api.Responses; | ||
|
||
namespace Zeebe.Client.Api.CommandsClient | ||
{ | ||
public interface ICreateWorkflowInstanceCommandStep1 | ||
{ | ||
/** | ||
* Set the BPMN process id of the workflow to create an instance of. This is the static id of the | ||
* process in the BPMN XML (i.e. "<bpmn:process id='my-workflow'>"). | ||
* | ||
* @param bpmnProcessId the BPMN process id of the workflow | ||
* @return the builder for this command | ||
*/ | ||
/// <summary> | ||
/// Set the BPMN process id of the workflow to create an instance of. This is the static id of the | ||
/// process in the BPMN XML (i.e. "<bpmn:process id='my-workflow'>"). | ||
/// </summary> | ||
/// <param name="bpmnProcessId">the BPMN process id of the workflow</param> | ||
/// <returns>the builder for this command</returns> | ||
ICreateWorkflowInstanceCommandStep2 BpmnProcessId(string bpmnProcessId); | ||
|
||
/** | ||
* Set the key of the workflow to create an instance of. The key is assigned by the broker while | ||
* deploying the workflow. It can be picked from the deployment or workflow event. | ||
* | ||
* @param workflowKey the key of the workflow | ||
* @return the builder for this command | ||
*/ | ||
/// <summary> | ||
/// Set the key of the workflow to create an instance of. The key is assigned by the broker while | ||
/// deploying the workflow. It can be picked from the deployment or workflow event. | ||
/// </summary> | ||
/// <param name="workflowKey">the key of the workflow</param> | ||
/// <returns>the builder for this command</returns> | ||
ICreateWorkflowInstanceCommandStep3 WorkflowKey(long workflowKey); | ||
} | ||
|
||
|
||
public interface ICreateWorkflowInstanceCommandStep2 | ||
{ | ||
/** | ||
* Set the version of the workflow to create an instance of. The version is assigned by the | ||
* broker while deploying the workflow. It can be picked from the deployment or workflow event. | ||
* | ||
* @param version the version of the workflow | ||
* @return the builder for this command | ||
*/ | ||
/// <summary> | ||
/// Set the version of the workflow to create an instance of. The version is assigned by the | ||
/// broker while deploying the workflow. It can be picked from the deployment or workflow event. | ||
/// </summary> | ||
/// <param name="version">the version of the workflow</param> | ||
/// <returns>the builder for this command</returns> | ||
ICreateWorkflowInstanceCommandStep3 Version(int version); | ||
|
||
/** | ||
* Use the latest version of the workflow to create an instance of. | ||
* | ||
* <p>If the latest version was deployed few moments before then it can happen that the new | ||
* instance is created of the previous version. | ||
* | ||
* @return the builder for this command | ||
*/ | ||
/// <summary> | ||
/// Use the latest version of the workflow to create an instance of. | ||
/// <p> | ||
/// If the latest version was deployed few moments before then it can happen that the new | ||
/// instance is created of the previous version. | ||
/// </p> | ||
/// </summary> | ||
/// <returns>the builder for this command</returns> | ||
ICreateWorkflowInstanceCommandStep3 LatestVersion(); | ||
} | ||
|
||
|
||
public interface ICreateWorkflowInstanceCommandStep3 : IFinalCommandStep<IWorkflowInstanceResponse> | ||
{ | ||
/** | ||
* Set the initial payload of the workflow instance. | ||
* | ||
* @param payload the payload (JSON) as String | ||
* @return the builder for this command. Call {@link #send()} to complete the command and send | ||
* it to the broker. | ||
*/ | ||
/// <summary> | ||
/// Set the initial payload of the workflow instance. | ||
/// </summary> | ||
/// <param name="payload">the payload (JSON) as String</param> | ||
/// <returns>the builder for this command. Call {@link #send()} to complete the command and send | ||
/// it to the broker.</returns> | ||
ICreateWorkflowInstanceCommandStep3 Payload(string payload); | ||
} | ||
} |
Oops, something went wrong.