
com.centurylink.mdw.model.workflow.WorkStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mdw-common Show documentation
Show all versions of mdw-common Show documentation
MDW is a microservices based workflow framework
/*
* Copyright (C) 2017 CenturyLink, 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 com.centurylink.mdw.model.workflow;
public interface WorkStatus {
Integer STATUS_PENDING_PROCESS = new Integer(1); // only used by process
Integer STATUS_IN_PROGRESS = new Integer(2);
Integer STATUS_FAILED = new Integer(3);
Integer STATUS_COMPLETED = new Integer(4);
Integer STATUS_CANCELLED = new Integer(5);
Integer STATUS_HOLD = new Integer(6);
Integer STATUS_WAITING = new Integer(7);
Integer STATUS_PURGE = new Integer(32); // only used by process at cleanup
String STATUSNAME_PENDING_PROCESS = "Pending Processing";
String STATUSNAME_PENDING = "Pending";
String STATUSNAME_IN_PROGRESS = "In Progress";
String STATUSNAME_FAILED = "Failed";
String STATUSNAME_COMPLETED = "Completed";
String STATUSNAME_CANCELLED = "Cancelled";
String STATUSNAME_CANCELED = "Canceled";
String STATUSNAME_HOLD = "Hold";
String STATUSNAME_WAITING = "Waiting";
String STATUSNAME_ACTIVE = "[Active]"; // pseudo status meaning not final
Integer[] allStatusCodes = { STATUS_PENDING_PROCESS, STATUS_IN_PROGRESS,
STATUS_FAILED, STATUS_COMPLETED, STATUS_CANCELLED, STATUS_HOLD, STATUS_WAITING};
String[] allStatusNames = {STATUSNAME_PENDING_PROCESS, STATUSNAME_IN_PROGRESS,
STATUSNAME_FAILED, STATUSNAME_COMPLETED, STATUSNAME_CANCELLED, STATUSNAME_HOLD, STATUSNAME_WAITING};
String LOGMSG_START = "Activity started";
String LOGMSG_EXECUTE = "Activity executing";
String LOGMSG_COMPLETE = "Activity completed";
String LOGMSG_SUSPEND = "Activity suspended";
String LOGMSG_CANCELLED = "Activity cancelled";
String LOGMSG_FAILED = "Activity failed";
String LOGMSG_HOLD = "Activity on hold";
String LOGMSG_PROC_START = "Process started";
String LOGMSG_PROC_COMPLETE = "Process completed";
String LOGMSG_PROC_CANCEL = "Process cancelled";
String LOGMSG_PROC_ERROR = "Process errored";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy