-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BZ-1056236 - Provide registering TaskLifeCycleEventListener in Regist…
…erableItemsFactory (cherry picked from commit 64f9f8d)
- Loading branch information
1 parent
527080f
commit 7060101
Showing
6 changed files
with
131 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright 2013 JBoss Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.kie.api.task; | ||
|
||
|
||
public interface TaskContext { | ||
|
||
UserGroupCallback getUserGroupCallback(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2013 JBoss Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.kie.api.task; | ||
|
||
import org.kie.api.task.model.Task; | ||
|
||
public interface TaskEvent { | ||
|
||
Task getTask(); | ||
|
||
TaskContext getTaskContext(); | ||
} |
52 changes: 52 additions & 0 deletions
52
kie-api/src/main/java/org/kie/api/task/TaskLifeCycleEventListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright 2013 JBoss Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.kie.api.task; | ||
|
||
import java.util.EventListener; | ||
|
||
public interface TaskLifeCycleEventListener extends EventListener { | ||
|
||
public void beforeTaskActivatedEvent(TaskEvent event); | ||
public void beforeTaskClaimedEvent(TaskEvent event); | ||
public void beforeTaskSkippedEvent(TaskEvent event); | ||
public void beforeTaskStartedEvent(TaskEvent event); | ||
public void beforeTaskStoppedEvent(TaskEvent event); | ||
public void beforeTaskCompletedEvent(TaskEvent event); | ||
public void beforeTaskFailedEvent(TaskEvent event); | ||
public void beforeTaskAddedEvent(TaskEvent event); | ||
public void beforeTaskExitedEvent(TaskEvent event); | ||
public void beforeTaskReleasedEvent(TaskEvent event); | ||
public void beforeTaskResumedEvent(TaskEvent event); | ||
public void beforeTaskSuspendedEvent(TaskEvent event); | ||
public void beforeTaskForwardedEvent(TaskEvent event); | ||
public void beforeTaskDelegatedEvent(TaskEvent event); | ||
|
||
public void afterTaskActivatedEvent(TaskEvent event); | ||
public void afterTaskClaimedEvent(TaskEvent event); | ||
public void afterTaskSkippedEvent(TaskEvent event); | ||
public void afterTaskStartedEvent(TaskEvent event); | ||
public void afterTaskStoppedEvent(TaskEvent event); | ||
public void afterTaskCompletedEvent(TaskEvent event); | ||
public void afterTaskFailedEvent(TaskEvent event); | ||
public void afterTaskAddedEvent(TaskEvent event); | ||
public void afterTaskExitedEvent(TaskEvent event); | ||
public void afterTaskReleasedEvent(TaskEvent event); | ||
public void afterTaskResumedEvent(TaskEvent event); | ||
public void afterTaskSuspendedEvent(TaskEvent event); | ||
public void afterTaskForwardedEvent(TaskEvent event); | ||
public void afterTaskDelegatedEvent(TaskEvent event); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 16 additions & 5 deletions
21
kie-internal/src/main/java/org/kie/internal/task/api/TaskEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
/* | ||
* Copyright 2013 JBoss Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.kie.internal.task.api; | ||
|
||
import org.kie.api.task.model.Task; | ||
|
||
public interface TaskEvent { | ||
public interface TaskEvent extends org.kie.api.task.TaskEvent { | ||
|
||
Task getTask(); | ||
|
||
TaskContext getTaskContext(); | ||
} |