All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.centurylink.mdw.services.process.CompletionCode Maven / Gradle / Ivy

/*
 * 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.services.process;

import com.centurylink.mdw.bpm.EventTypeDocument;
import com.centurylink.mdw.model.event.EventType;
import com.centurylink.mdw.model.workflow.WorkStatus;

public class CompletionCode {

    private Integer activityInstanceStatus;
    private EventTypeDocument.EventType.Enum eventType;
    private String completionCode;

    public CompletionCode() {
        this.activityInstanceStatus = null;
    }

    public void parse(String compCode) {
        if (compCode!=null) {
            int k2 = compCode.indexOf("::");
            if (k2>0) {
                String v = compCode.substring(0,k2);
                compCode = compCode.substring(k2+2);
                for (int j=0; j0) this.completionCode = code;
        else this.completionCode = null;
    }

    public Integer getActivityInstanceStatus() {
        return this.activityInstanceStatus;
    }

    public EventTypeDocument.EventType.Enum getXmlEventType() {
        return eventType;
    }

    public Integer getEventType() {
        String en = eventType.toString();
        for (int i=0; i0?sb.toString():null;
    }



}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy