Skip to content

Commit

Permalink
chore(examples): update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisKujawa committed Mar 14, 2019
1 parent 1a055eb commit 4009d62
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Client.Examples/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,23 @@ public static async Task Main(string[] args)
// create zeebe client
var client = ZeebeClient.NewZeebeClient(ZeebeUrl);


await client.NewPublishMessageCommand().MessageName("csharp").CorrelationKey("wow").Variables("{\"realValue\":2}").Send();

// deploy
var deployResponse = await client.NewDeployCommand().AddResourceFile(DemoProcessPath).Send();

// create workflow instance
var workflowKey = deployResponse.Workflows[0].WorkflowKey;
await client
var workflowInstance = await client
.NewCreateWorkflowInstanceCommand()
.WorkflowKey(workflowKey)
.Variables(WorkflowInstanceVariables)
.Send();


await client.NewSetVariablesCommand(workflowInstance.WorkflowInstanceKey).Variables("{\"wow\":\"this\"}").Local().Send();

// open job worker
using (var signal = new EventWaitHandle(false, EventResetMode.AutoReset))
{
Expand Down

0 comments on commit 4009d62

Please sign in to comment.