Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
254 additions
and
68 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
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: 21 additions & 0 deletions
21
...task/jbpm-human-task-core-cdi/src/main/java/org/jbpm/task/events/AfterTaskAddedEvent.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,21 @@ | ||
/* | ||
* To change this template, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.jbpm.task.events; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import javax.inject.Qualifier; | ||
|
||
|
||
@Qualifier | ||
|
||
@Target({ElementType.FIELD, ElementType.PARAMETER}) | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
|
||
public @interface AfterTaskAddedEvent {} | ||
|
21 changes: 21 additions & 0 deletions
21
...ask/jbpm-human-task-core-cdi/src/main/java/org/jbpm/task/events/BeforeTaskAddedEvent.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,21 @@ | ||
/* | ||
* To change this template, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.jbpm.task.events; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import javax.inject.Qualifier; | ||
|
||
|
||
@Qualifier | ||
|
||
@Target({ElementType.FIELD, ElementType.PARAMETER}) | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
|
||
public @interface BeforeTaskAddedEvent {} | ||
|
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
22 changes: 22 additions & 0 deletions
22
...task-core-cdi/src/main/java/org/jbpm/task/lifecycle/listeners/DeadlinesEventListener.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,22 @@ | ||
/* | ||
* To change this template, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.jbpm.task.lifecycle.listeners; | ||
|
||
import org.jbpm.task.Task; | ||
|
||
/** | ||
* | ||
*/ | ||
|
||
public interface DeadlinesEventListener { | ||
public void afterTaskAddedEvent(Task ti); | ||
public void afterTaskStartedEvent(Task ti); | ||
public void afterTaskSkippedEvent(Task ti); | ||
public void afterTaskStoppedEvent(Task ti); | ||
public void afterTaskCompletedEvent(Task ti); | ||
public void afterTaskFailedEvent(Task ti); | ||
public void afterTaskExitedEvent(Task ti); | ||
|
||
} |
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
56 changes: 56 additions & 0 deletions
56
...e-cdi/src/main/java/org/jbpm/task/lifecycle/listeners/InternalDeadlinesEventListener.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,56 @@ | ||
/* | ||
* Copyright 2012 JBoss by Red Hat. | ||
* | ||
* 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.jbpm.task.lifecycle.listeners; | ||
|
||
import org.jbpm.task.Task; | ||
import org.jbpm.task.annotations.Internal; | ||
|
||
/** | ||
* | ||
*/ | ||
@Internal | ||
public class InternalDeadlinesEventListener implements DeadlinesEventListener{ | ||
|
||
public void afterTaskAddedEvent(Task ti) { | ||
|
||
} | ||
|
||
public void afterTaskStartedEvent(Task ti) { | ||
|
||
} | ||
|
||
public void afterTaskSkippedEvent(Task ti) { | ||
|
||
} | ||
|
||
public void afterTaskStoppedEvent(Task ti) { | ||
|
||
} | ||
|
||
public void afterTaskCompletedEvent(Task ti) { | ||
|
||
} | ||
|
||
public void afterTaskFailedEvent(Task ti) { | ||
|
||
} | ||
|
||
public void afterTaskExitedEvent(Task ti) { | ||
|
||
} | ||
|
||
} |
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
Oops, something went wrong.