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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
@apache apache deleted a comment from kie-ci3 Oct 2, 2024
@apache apache deleted a comment from kie-ci3 Oct 3, 2024
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

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

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.

2 participants