[HandlerTopics("sayHello", LockDuration = 10_000)]
[HandlerVariables("USERNAME")]
public class SayHelloHandler : IExternalTaskHandler
{
public async Task<IExecutionResult> HandleAsync(ExternalTask externalTask, CancellationToken cancellationToken)
{
var username = externalTask.Variables["USERNAME"].Value;
await Task.Delay(1000);
return new CompleteResult(new Dictionary<string, Variable>
{
["MESSAGE"] = Variable.String($"Hello, {username}!")
});
}
}
forked from TechnoBerry/camunda-worker-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Ultimate solution to connect your ASP.NET Core application to Camunda external tasks
License
DGilmour5/camunda-worker-dotnet
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Ultimate solution to connect your ASP.NET Core application to Camunda external tasks
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C# 100.0%