Skip to content

Instantly share code, notes, and snippets.

View tsurdilo's full-sized avatar

Tihomir Surdilovic tsurdilo

View GitHub Profile
Difference btw. history and mutable state (data diff?)
Is mutable state info stored in shard cache?
Where is mutable state stored (db table)
Event core attributes
"eventId": "8",
"eventTime": "2023-01-15T02:41:21.909019228Z",
"eventType": "WorkflowTaskScheduled",
"version": "0",
"taskId": "1048609",
{
"id": "flow",
"name": "Workflow",
"version": "1.0",
"events": [
{
"name": "Query",
"type": "query",
"source": "commerce/query"
}
id: applicantrequest
version: '1.0'
name: Applicant Request Decision Workflow
description: Determine if applicant request is valid
functions: features/applicantrequestfunctions.json
states:
- name: CheckApplication
type: switch
start:
kind: default
id: testworkflow
name: Test Workflow
version: '1.0'
functions:
- name: getCurrentTime
operation: http://us-central-workflowsample.cloudfunctions.net/api.yml#datetime
- name: readWikipedia
operation: https://en.wikipedia.org/w/api.json#readLatest
states:
- name: GetTodaysWikipediaArticles
erorretries2
{
"id": "integrationfunctionworkflow",
"name": "Integration Function Workflow",
"version": "1.0",
"functions": [
{
"name": "integrationfunction",
"type": "integration",
"metadata": {
"endpoint": "direct:testroutename"
CNCF Serverless WG: CloudEvents and Serverless Workflow
Speakers: Doug Davis and Tihomir Surdilovic
In this session the Serverless WG will update the community on the CloudEvents and Serverless Workflow specifications.
In this talk we will look into the importance of using workflows in event-driven, distributed applications.
We will look at the specifics of the Serverless Workflow specification and what benefits it brings you
for solving real-world business problems.
We will also present a demo showing off the Serverless Workflow declarative markup in action.
Well let's see :)
Bpmn2 is over 10 years old and let's look at its eco-system now.
Proprietary everything , tooling, engines (that don't work together), everyone does a different sub-set of the spec and even that they do differently.
As a user you pretty much have to pay (and you have to pay ALOT) to even get started with business automation with bpmn one way or another.
Not even going into the instant vendor-lock that you run into and the huge complexity that you have to overcome just to learn it.
Now let's take a look at Java for example (looking at the same amount of lets say 10 years) - free editors, free everything, professional tooling (again free) huge eco-system ..etc etc.
The bpmn2 communtiy as a whole just focuses on money it seems rather than allowing anyone to participate, but the funny thing is when you start learning programming as a kid, what do you use...workflows :)
{
"id": "prchecker",
"name": "Github PR Checker Workflow",
"version": "1.0",
"functions": [
{
"name": "AddLabels",
"type": "service",
"metadata": {
"interface": "org.kogito.examples.sw.github.workflow.GithubService",
{
"id": "myworkflow",
"name": "myworkflowname",
"version": "1.0",
"states": [
{
"name": "myswitchstate",
"type":"switch",
"start": {
"kind":"default"