-
Notifications
You must be signed in to change notification settings - Fork 388
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
[incubator-kie-issues-1484] Create endpoints for user task #2018
Conversation
b1e04c6
to
e3913df
Compare
d496dbe
to
9210216
Compare
66edc38
to
f714891
Compare
public static final String RELEASE = "release"; | ||
public static final String COMPLETE = "complete"; | ||
public static final String SKIP = "skip"; | ||
public static final String FAIL = "fail"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the custom lifecycle listener provide the following:
- New
start
state - State
complete
only supported fromstart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added the intermediate start state
import jakarta.inject.Singleton; | ||
|
||
@Singleton | ||
public class CustomUserTaskLifeCycle implements UserTaskLifeCycle { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to the custom classes require the examples README file to be updated. The current content is outdated:
org.acme.travels.config.CustomWorkItemHandlerConfig - responsible for registering work item handler to deal with user tasks
org.acme.travels.usertasks.CustomHumanTaskLifeCycle - defines actual the life cycle for user tasks
org.acme.travels.usertasks.Start - new life cycle phase
org.acme.travels.usertasks.CompleteStartedOnly - extended Complete life cycle phase to allow only started tasks and reuse all other logic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added the intermediate start state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
f714891
to
2795c6a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @elguardian
I have created apache/incubator-kie-issues#1515 to check the custom lifecycle example as follow-up task.
Closes: apache/incubator-kie-issues#1484
depends on apache/incubator-kie-kogito-runtimes#3673