Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace references to WorkflowDefinition with AbstractWorkflowDefinition #312

Merged
merged 1 commit into from
May 17, 2019

Conversation

dahedgehog
Copy link
Member

This will fix issue #311 by replacing references to WorkflowDefinition (which requires use of enum) with AbstractWorkflowDefinition (which works with any WorkflowState type classes).

@coveralls
Copy link

coveralls commented May 15, 2019

Coverage Status

Coverage remained the same at 72.414% when pulling 24e28aa on kotlin-workflow-support into 7028bfe on master.

CHANGELOG.md Outdated
@@ -1,5 +1,8 @@
## 5.5.1-SNAPSHOT (future release)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New feature is added => minor version bump here and in pom.xml files: (5.6.0-SNAPSHOT)


fun repeat(execution: StateExecution): NextAction {
println("Counter: " + execution.getVariable(VAR_COUNTER))
execution.setVariable(VAR_COUNTER, execution.getVar<Int>(VAR_COUNTER) + 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this getVar<Int> method? Is it some kind of kotlin magic thing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's Kotlin extension function, and allows nice inline reified typing of the return value (as a type parameter to the function), instead of requiring to pass the type class as a parameter to the function. Kotlin magic...

@ttiurani
Copy link
Contributor

We want to put the two binary .jar files to version control? @dahedgehog

@efonsell efonsell merged commit 7d19e2f into master May 17, 2019
@efonsell efonsell deleted the kotlin-workflow-support branch May 17, 2019 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants