Build with the tools you already use.
Migrate your workflow to Camunda
As a certified Camunda Gold Partner, we recommend transforming your workflow to an open-source platform like Camunda.
Camunda’s platform is powered by a cloud-native workflow engine, making it possible for businesses to transform into an era where processes span people systems and devices.
func startWorker(client zbc.Client) worker.JobWorker {
w := client.NewJobWorker().
JobType(lJobType).
Handler(HandleJob).
Open()
return w
}
func HandleJob(client worker.JobClient, job entities.Job) {
vars, err:=job.GetVariablesAsMap()
log.Printf("Sending email with message content %s", vars[kMessageVariable])
_, err=client.NewCompleteJobCommand().JobKey(job.Key).Send(ctx)
if err!= nil {
log.Pringf("failed to complete job with key %d: [%s]", job.Key, err)
}
log.Prinff("completed job %d successfully", job.Key)
}
class Program {
static void Main(string[] _) {
using (var zeebeClient = CreateZeebeClient())
{
using zeebeClient.NewWorker()
.JobType("email")
.Handler(JobHandler)
.Open())
{
AwaitExitUserCmd();
}
}
}
private static void JobHanlder(IJobClient jobClient, IJob activatedJob)
{
var variables = JsonConvert.DeserializeObject>(activatedJob.Variables);
Log.LogInformation($"Sending email with message content: {variables["message_content"]}");
jobClient.NewCompleteJobCommand(activatedJob).Send();
}
router = ZeebeTaskRouter()
@router.task(task_type="mail")
async def my_task(message_content: str):
##Your business logic would go here
print('Sending email with message content: ' + message_content)
return{}
# ...
async def main():
# ...
worker = ZeebeWorker(channel)
worker.include_router(router)
await worker.work()
@Component
public class EmailWorker {
@ZeebeWorker(type="email", autoComplete = true)
public void sendEmail(final ACtivatedJob job) {
final String message_content = (String_ job.getVariablesAsMap().get("message_content");
LOG.info("Sending email with message content: {}", message_content);
}
}
Why migrate to Camunda?
Camunda features
Orchestrate across every endpoint
Hook Camunda into any process endpoint your organization needs to automate.
Bring IT and the business together
BPMN & DMN standards bring teams together to speak the same language and collaborate effectively.
Unparalleled speed, scale and resilience
Scale throughput to process an unlimited amount of transaction at consistent low latencies.
Open Architecture
Easily integrate with most common technical architectures and frameworks
Built by developers, for developers
Open APIs to integrate with just about anything and a vibrant community of 100,000+ developers.
Get all the BPM info you need, right here.
Featured CAPBPM Podcasts
Darren Pulsipher, Chief Solutions Architect, Public Sector, Intel, and Max Young, CEO of Capital BPM, discuss operationalizing business process management with a modeling program.
Got questions about Camunda?
Contact us to schedule a one-on-one session with one of our experts
Selected Case Study
Insurance
Priority Tax Management
Approach
The tasks are created and then claimed by a user to complete the planning and preparation tasks. Users can submit the task for review.
Time Savings
18 months
Dollar Savings
$ 2,870,000 Annual Savings per year including the first year
