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

rapture.common.dp.Worker Maven / Gradle / Ivy

/**
 * The MIT License (MIT)
 *
 * Copyright (C) 2011-2016 Incapture Technologies LLC
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

/**
 * This file is autogenerated and any changes will be overwritten.
 */

package rapture.common.dp;

import rapture.common.*;
import rapture.object.Searchable;
import rapture.object.Storable;
import rapture.object.Debugable;
import rapture.common.version.ApiVersion;
import rapture.common.impl.jackson.JacksonUtil;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
import java.util.HashMap;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* 
**/
@SuppressWarnings("all")
public class Worker  implements RaptureTransferObject, Debugable ,Storable  {
    /*
    *  Start of field 'workOrderURI' (String) 
    */
    private String workOrderURI;

    @JsonProperty("workOrderURI")
    public String getWorkOrderURI() {
       return workOrderURI;
    }

    @JsonProperty("workOrderURI")
    public void setWorkOrderURI(String workOrderURI) {
       this.workOrderURI =  new RaptureURI(workOrderURI, Scheme.WORKORDER).toString() /* TODO remove toString */  ;
    }
    /*
    *  end of field 'workOrderURI' (String) 
    */


    /*
    *  Start of field 'id' (String) 
    */
    private String id;

    @JsonProperty("id")
    public String getId() {
       return id;
    }

    @JsonProperty("id")
    public void setId(String id) {
       this.id =  id ;
    }
    /*
    *  end of field 'id' (String) 
    */


    /*
    *  Start of field 'viewOverlay' (Map) 
    */
    private Map viewOverlay = new HashMap();

    @JsonProperty("viewOverlay")
    public Map getViewOverlay() {
       return viewOverlay;
    }

    @JsonProperty("viewOverlay")
    public void setViewOverlay(Map viewOverlay) {
       this.viewOverlay =  viewOverlay ;
    }
    /*
    *  end of field 'viewOverlay' (Map) 
    */


    /*
    *  Start of field 'stack' (List) 
    */
    private List stack = new ArrayList();

    @JsonProperty("stack")
    public List getStack() {
       return stack;
    }

    @JsonProperty("stack")
    public void setStack(List stack) {
       this.stack =  stack ;
    }
    /*
    *  end of field 'stack' (List) 
    */


    /*
    *  Start of field 'localView' (List>) 
    */
    private List> localView = new ArrayList>();

    @JsonProperty("localView")
    public List> getLocalView() {
       return localView;
    }

    @JsonProperty("localView")
    public void setLocalView(List> localView) {
       this.localView =  localView ;
    }
    /*
    *  end of field 'localView' (List>) 
    */


    /*
    *  Start of field 'stepExecutionRecords' (List) 
    */
    private List stepExecutionRecords = new ArrayList();

    @JsonProperty("stepExecutionRecords")
    public List getStepExecutionRecords() {
       return stepExecutionRecords;
    }

    @JsonProperty("stepExecutionRecords")
    public void setStepExecutionRecords(List stepExecutionRecords) {
       this.stepExecutionRecords =  stepExecutionRecords ;
    }
    /*
    *  end of field 'stepExecutionRecords' (List) 
    */


    /*
    *  Start of field 'stepRecords' (List) 
    */
    private List stepRecords = new ArrayList();

    @JsonProperty("stepRecords")
    public List getStepRecords() {
       return stepRecords;
    }

    @JsonProperty("stepRecords")
    public void setStepRecords(List stepRecords) {
       this.stepRecords =  stepRecords ;
    }
    /*
    *  end of field 'stepRecords' (List) 
    */


    /*
    *  Start of field 'status' (WorkerExecutionState) 
    */
    private WorkerExecutionState status;

    @JsonProperty("status")
    public WorkerExecutionState getStatus() {
       return status;
    }

    @JsonProperty("status")
    public void setStatus(WorkerExecutionState status) {
       this.status =  status ;
    }
    /*
    *  end of field 'status' (WorkerExecutionState) 
    */


    /*
    *  Start of field 'detail' (String) 
    */
    private String detail;

    @JsonProperty("detail")
    public String getDetail() {
       return detail;
    }

    @JsonProperty("detail")
    public void setDetail(String detail) {
       this.detail =  detail ;
    }
    /*
    *  end of field 'detail' (String) 
    */


    /*
    *  Start of field 'effectiveUser' (String) 
    */
    private String effectiveUser;

    @JsonProperty("effectiveUser")
    public String getEffectiveUser() {
       return effectiveUser;
    }

    @JsonProperty("effectiveUser")
    public void setEffectiveUser(String effectiveUser) {
       this.effectiveUser =  effectiveUser ;
    }
    /*
    *  end of field 'effectiveUser' (String) 
    */


    /*
    *  Start of field 'priority' (Integer) 
    */
    private Integer priority;

    @JsonProperty("priority")
    public Integer getPriority() {
       return priority;
    }

    @JsonProperty("priority")
    public void setPriority(Integer priority) {
       this.priority =  priority ;
    }
    /*
    *  end of field 'priority' (Integer) 
    */


    /*
    *  Start of field 'callingContext' (CallingContext) 
    */
    private CallingContext callingContext;

    @JsonProperty("callingContext")
    public CallingContext getCallingContext() {
       return callingContext;
    }

    @JsonProperty("callingContext")
    public void setCallingContext(CallingContext callingContext) {
       this.callingContext =  callingContext ;
    }
    /*
    *  end of field 'callingContext' (CallingContext) 
    */


    /*
    *  Start of field 'activityId' (String) 
    */
    private String activityId = null;

    @JsonProperty("activityId")
    public String getActivityId() {
       return activityId;
    }

    @JsonProperty("activityId")
    public void setActivityId(String activityId) {
       this.activityId =  activityId ;
    }
    /*
    *  end of field 'activityId' (String) 
    */


    /*
    *  Start of field 'appStatusNameStack' (List) 
    */
    private List appStatusNameStack = new ArrayList();

    @JsonProperty("appStatusNameStack")
    public List getAppStatusNameStack() {
       return appStatusNameStack;
    }

    @JsonProperty("appStatusNameStack")
    public void setAppStatusNameStack(List appStatusNameStack) {
       this.appStatusNameStack =  appStatusNameStack ;
    }
    /*
    *  end of field 'appStatusNameStack' (List) 
    */


    /*
    *  Start of field 'parent' (String) 
    */
    private String parent;

    @JsonProperty("parent")
    public String getParent() {
       return parent;
    }

    @JsonProperty("parent")
    public void setParent(String parent) {
       this.parent =  parent ;
    }
    /*
    *  end of field 'parent' (String) 
    */


    /*
    *  Start of field 'siblingCount' (Integer) 
    */
    private Integer siblingCount;

    @JsonProperty("siblingCount")
    public Integer getSiblingCount() {
       return siblingCount;
    }

    @JsonProperty("siblingCount")
    public void setSiblingCount(Integer siblingCount) {
       this.siblingCount =  siblingCount ;
    }
    /*
    *  end of field 'siblingCount' (Integer) 
    */


    /*
    *  Start of field 'siblingPosition' (Integer) 
    */
    private Integer siblingPosition;

    @JsonProperty("siblingPosition")
    public Integer getSiblingPosition() {
       return siblingPosition;
    }

    @JsonProperty("siblingPosition")
    public void setSiblingPosition(Integer siblingPosition) {
       this.siblingPosition =  siblingPosition ;
    }
    /*
    *  end of field 'siblingPosition' (Integer) 
    */


    /*
    *  Start of field 'waitCount' (Integer) 
    */
    private Integer waitCount;

    @JsonProperty("waitCount")
    public Integer getWaitCount() {
       return waitCount;
    }

    @JsonProperty("waitCount")
    public void setWaitCount(Integer waitCount) {
       this.waitCount =  waitCount ;
    }
    /*
    *  end of field 'waitCount' (Integer) 
    */


    /*
    *  Start of field 'exceptionInfo' (ErrorWrapper) 
    */
    private ErrorWrapper exceptionInfo;

    @JsonProperty("exceptionInfo")
    public ErrorWrapper getExceptionInfo() {
       return exceptionInfo;
    }

    @JsonProperty("exceptionInfo")
    public void setExceptionInfo(ErrorWrapper exceptionInfo) {
       this.exceptionInfo =  exceptionInfo ;
    }
    /*
    *  end of field 'exceptionInfo' (ErrorWrapper) 
    */


    /*
    *  Start of field 'myActivityId' (String) 
    */
    private String myActivityId = null;

    @JsonProperty("myActivityId")
    public String getMyActivityId() {
       return myActivityId;
    }

    @JsonProperty("myActivityId")
    public void setMyActivityId(String myActivityId) {
       this.myActivityId =  myActivityId ;
    }
    /*
    *  end of field 'myActivityId' (String) 
    */


   

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((effectiveUser == null) ? 0 : effectiveUser.hashCode());
        result = prime * result + ((parent == null) ? 0 : parent.hashCode());
        result = prime * result + ((stack == null) ? 0 : stack.hashCode());
        result = prime * result + ((viewOverlay == null) ? 0 : viewOverlay.hashCode());
        result = prime * result + ((siblingCount == null) ? 0 : siblingCount.hashCode());
        result = prime * result + ((priority == null) ? 0 : priority.hashCode());
        result = prime * result + ((callingContext == null) ? 0 : callingContext.hashCode());
        result = prime * result + ((stepExecutionRecords == null) ? 0 : stepExecutionRecords.hashCode());
        result = prime * result + ((appStatusNameStack == null) ? 0 : appStatusNameStack.hashCode());
        result = prime * result + ((stepRecords == null) ? 0 : stepRecords.hashCode());
        result = prime * result + ((activityId == null) ? 0 : activityId.hashCode());
        result = prime * result + ((workOrderURI == null) ? 0 : workOrderURI.hashCode());
        result = prime * result + ((localView == null) ? 0 : localView.hashCode());
        result = prime * result + ((id == null) ? 0 : id.hashCode());
        result = prime * result + ((detail == null) ? 0 : detail.hashCode());
        result = prime * result + ((waitCount == null) ? 0 : waitCount.hashCode());
        result = prime * result + ((exceptionInfo == null) ? 0 : exceptionInfo.hashCode());
        result = prime * result + ((status == null) ? 0 : status.hashCode());
        result = prime * result + ((siblingPosition == null) ? 0 : siblingPosition.hashCode());
        result = prime * result + ((myActivityId == null) ? 0 : myActivityId.hashCode());
        return result;
    }


    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        
        Worker other = (Worker) obj;

        if (effectiveUser == null) {
            if (other.effectiveUser != null) {
                return false;
            }
        } else if (!effectiveUser.equals(other.effectiveUser)) {
            return false;
        }

        if (parent == null) {
            if (other.parent != null) {
                return false;
            }
        } else if (!parent.equals(other.parent)) {
            return false;
        }

        if (stack == null) {
            if (other.stack != null) {
                return false;
            }
        } else if (!stack.equals(other.stack)) {
            return false;
        }

        if (viewOverlay == null) {
            if (other.viewOverlay != null) {
                return false;
            }
        } else if (!viewOverlay.equals(other.viewOverlay)) {
            return false;
        }

        if (siblingCount == null) {
            if (other.siblingCount != null) {
                return false;
            }
        } else if (!siblingCount.equals(other.siblingCount)) {
            return false;
        }

        if (priority == null) {
            if (other.priority != null) {
                return false;
            }
        } else if (!priority.equals(other.priority)) {
            return false;
        }

        if (callingContext == null) {
            if (other.callingContext != null) {
                return false;
            }
        } else if (!callingContext.equals(other.callingContext)) {
            return false;
        }

        if (stepExecutionRecords == null) {
            if (other.stepExecutionRecords != null) {
                return false;
            }
        } else if (!stepExecutionRecords.equals(other.stepExecutionRecords)) {
            return false;
        }

        if (appStatusNameStack == null) {
            if (other.appStatusNameStack != null) {
                return false;
            }
        } else if (!appStatusNameStack.equals(other.appStatusNameStack)) {
            return false;
        }

        if (stepRecords == null) {
            if (other.stepRecords != null) {
                return false;
            }
        } else if (!stepRecords.equals(other.stepRecords)) {
            return false;
        }

        if (activityId == null) {
            if (other.activityId != null) {
                return false;
            }
        } else if (!activityId.equals(other.activityId)) {
            return false;
        }

        if (workOrderURI == null) {
            if (other.workOrderURI != null) {
                return false;
            }
        } else if (!workOrderURI.equals(other.workOrderURI)) {
            return false;
        }

        if (localView == null) {
            if (other.localView != null) {
                return false;
            }
        } else if (!localView.equals(other.localView)) {
            return false;
        }

        if (id == null) {
            if (other.id != null) {
                return false;
            }
        } else if (!id.equals(other.id)) {
            return false;
        }

        if (detail == null) {
            if (other.detail != null) {
                return false;
            }
        } else if (!detail.equals(other.detail)) {
            return false;
        }

        if (waitCount == null) {
            if (other.waitCount != null) {
                return false;
            }
        } else if (!waitCount.equals(other.waitCount)) {
            return false;
        }

        if (exceptionInfo == null) {
            if (other.exceptionInfo != null) {
                return false;
            }
        } else if (!exceptionInfo.equals(other.exceptionInfo)) {
            return false;
        }

        if (status == null) {
            if (other.status != null) {
                return false;
            }
        } else if (!status.equals(other.status)) {
            return false;
        }

        if (siblingPosition == null) {
            if (other.siblingPosition != null) {
                return false;
            }
        } else if (!siblingPosition.equals(other.siblingPosition)) {
            return false;
        }

        if (myActivityId == null) {
            if (other.myActivityId != null) {
                return false;
            }
        } else if (!myActivityId.equals(other.myActivityId)) {
            return false;
        }

           
        return true;
    }


    /**/
    public String debug() {
        StringBuilder sb = new StringBuilder();
            {
                sb.append(" effectiveUser= ");
                Object o = effectiveUser;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" parent= ");
                Object o = parent;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" stack= ");
                Object o = stack;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" viewOverlay= ");
                Object o = viewOverlay;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" siblingCount= ");
                Object o = siblingCount;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" priority= ");
                Object o = priority;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" callingContext= ");
                Object o = callingContext;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" stepExecutionRecords= ");
                Object o = stepExecutionRecords;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" appStatusNameStack= ");
                Object o = appStatusNameStack;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" stepRecords= ");
                Object o = stepRecords;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" activityId= ");
                Object o = activityId;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" workOrderURI= ");
                Object o = workOrderURI;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" localView= ");
                Object o = localView;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" id= ");
                Object o = id;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" detail= ");
                Object o = detail;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" waitCount= ");
                Object o = waitCount;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" exceptionInfo= ");
                Object o = exceptionInfo;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" status= ");
                Object o = status;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" siblingPosition= ");
                Object o = siblingPosition;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" myActivityId= ");
                Object o = myActivityId;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

        return sb.append("\n").toString();
    }


    @Override
    public String getStoragePath() {
     // Add key fields
      return new WorkerPathBuilder()
        .workOrderURI(getWorkOrderURI())
        .id(getId())
        .buildStoragePath();
    }
    
    @Override
    public RaptureURI getStorageLocation() {
       return new WorkerPathBuilder()
         .workOrderURI(getWorkOrderURI())
         .id(getId())
         .buildStorageLocation();
    }
    
    


    @Override
    public String toString() {
        return JacksonUtil.jsonFromObject(this);
    }

    private ApiVersion _raptureVersion;

    @JsonProperty("_raptureVersion")
    public ApiVersion get_raptureVersion() {
        return _raptureVersion;
    }

    @JsonProperty("_raptureVersion")
    public void set_raptureVersion(ApiVersion _raptureVersion) {
        this._raptureVersion = _raptureVersion;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy