forked from kitodo/kitodo-production
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kitodo#5657 from markusweigelt/task-action-processor
Task action processor
- Loading branch information
Showing
15 changed files
with
695 additions
and
47 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
36 changes: 36 additions & 0 deletions
36
Kitodo/src/main/java/org/kitodo/exceptions/ProcessorException.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,36 @@ | ||
/* | ||
* (c) Kitodo. Key to digital objects e. V. <[email protected]> | ||
* | ||
* This file is part of the Kitodo project. | ||
* | ||
* It is licensed under GNU General Public License version 3 or later. | ||
* | ||
* For the full copyright and license information, please read the | ||
* GPL3-License.txt file that was distributed with this source code. | ||
*/ | ||
|
||
package org.kitodo.exceptions; | ||
|
||
public class ProcessorException extends Exception { | ||
|
||
/** | ||
* Constructor with given exception. | ||
* | ||
* @param exception | ||
* as Exception | ||
*/ | ||
public ProcessorException(Exception exception) { | ||
super(exception); | ||
} | ||
|
||
/** | ||
* Constructor with given message. | ||
* | ||
* @param message | ||
* the exception message | ||
*/ | ||
public ProcessorException(String message) { | ||
super(message); | ||
} | ||
|
||
} |
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
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
39 changes: 39 additions & 0 deletions
39
Kitodo/src/main/java/org/kitodo/production/interfaces/activemq/TaskAction.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,39 @@ | ||
/* | ||
* (c) Kitodo. Key to digital objects e. V. <[email protected]> | ||
* | ||
* This file is part of the Kitodo project. | ||
* | ||
* It is licensed under GNU General Public License version 3 or later. | ||
* | ||
* For the full copyright and license information, please read the | ||
* GPL3-License.txt file that was distributed with this source code. | ||
*/ | ||
|
||
package org.kitodo.production.interfaces.activemq; | ||
|
||
public enum TaskAction { | ||
/** | ||
* Adds a comment to the task. | ||
*/ | ||
COMMENT, | ||
|
||
/** | ||
* Add an error comment when task status is INWORK and set the task status to LOCKED if the correction id is set. | ||
*/ | ||
ERROR_OPEN, | ||
|
||
/** | ||
* Set task status of LOCKED (if correction id is set) or INWORK (if correction id is not set) task to OPEN. | ||
*/ | ||
ERROR_CLOSE, | ||
|
||
/** | ||
* Set task status of open task to INWORK. | ||
*/ | ||
PROCESS, | ||
|
||
/** | ||
* Close a task. | ||
*/ | ||
CLOSE | ||
} |
Oops, something went wrong.