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

[incubator-kie-issues-1484] Create endpoints for user task #2018

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

elguardian
Copy link

@apache apache deleted a comment from kie-ci3 Sep 30, 2024
@apache apache deleted a comment from kie-ci3 Oct 1, 2024
@elguardian elguardian force-pushed the incubator-kie-issues-1484 branch from b1e04c6 to e3913df Compare October 1, 2024 07:40
@apache apache deleted a comment from kie-ci3 Oct 2, 2024
@elguardian elguardian force-pushed the incubator-kie-issues-1484 branch from d496dbe to 9210216 Compare October 3, 2024 10:22
@apache apache deleted a comment from kie-ci3 Oct 3, 2024
@elguardian elguardian force-pushed the incubator-kie-issues-1484 branch 2 times, most recently from 66edc38 to f714891 Compare October 3, 2024 14:42
public static final String RELEASE = "release";
public static final String COMPLETE = "complete";
public static final String SKIP = "skip";
public static final String FAIL = "fail";

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 from start

Copy link
Author

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 {

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

Copy link
Author

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

@elguardian elguardian requested a review from pefernan October 7, 2024 05:30
Copy link
Contributor

@pefernan pefernan left a comment

Choose a reason for hiding this comment

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

+1

@elguardian elguardian force-pushed the incubator-kie-issues-1484 branch from f714891 to 2795c6a Compare October 7, 2024 08:44
Copy link

@martinweiler martinweiler left a 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.

@elguardian elguardian merged commit 7f4f4f7 into apache:main Oct 7, 2024
4 checks passed
@elguardian elguardian deleted the incubator-kie-issues-1484 branch October 7, 2024 18:04
rgdoliveira pushed a commit to rgdoliveira/kogito-examples that referenced this pull request Oct 10, 2024
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.

3 participants