/******************************************************************************
 * Product: Compiere ERP & CRM Smart Business Solution                        *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 3600 Bridge Parkway #102, Redwood City, CA 94065, USA      *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
package org.compiere.model;

/** Generated Model - DO NOT CHANGE */
import java.sql.*;
import java.math.*;
import org.compiere.framework.*;
import org.compiere.util.*;
/** Generated Model for AD_WF_Node
 *  @author Jorg Janke (generated) 
 *  @version Release 3.0.0 - $Id: GenerateModel.java,v 1.1 2008/01/16 07:34:32 jrmt Exp $ */
public class X_AD_WF_Node extends PO
{
/** Standard Constructor
@param ctx context
@param AD_WF_Node_ID id
@param trxName transaction
*/
public X_AD_WF_Node (Ctx ctx, int AD_WF_Node_ID, String trxName)
{
super (ctx, AD_WF_Node_ID, trxName);
/** if (AD_WF_Node_ID == 0)
{
setAD_WF_Node_ID (0);
setAD_Workflow_ID (0);
setAction (null);	// N
setDuration (0);
setDurationLimit (0);
setEntityType (null);	// U
setIsCentrallyMaintained (true);	// Y
setJoinElement (null);	// X
setName (null);
setSplitElement (null);	// X
setValue (null);
setWaitingTime (0);
setXPosition (0);
setYPosition (0);
}
 */
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_AD_WF_Node (Ctx ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** Serial Version No */
static final long serialVersionUID = 27466309592789L;
/** Last Updated Timestamp 2007-07-12 05:04:36.0 */
public static final long updatedMS = 1184184276000L;
/** AD_Table_ID=129 */
public static final int Table_ID=129;

/** TableName=AD_WF_Node */
public static final String Table_Name="AD_WF_Node";

protected static KeyNamePair Model = new KeyNamePair(129,"AD_WF_Node");

protected BigDecimal accessLevel = new BigDecimal(6);
/** AccessLevel
@return 6 - System - Client 
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected POInfo initPO (Ctx ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public String toString()
{
StringBuffer sb = new StringBuffer ("X_AD_WF_Node[").append(get_ID()).append("]");
return sb.toString();
}
/** Set Column.
@param AD_Column_ID Column in the table */
public void setAD_Column_ID (int AD_Column_ID)
{
if (AD_Column_ID <= 0) set_Value ("AD_Column_ID", null);
else
set_Value ("AD_Column_ID", new Integer(AD_Column_ID));
}
/** Get Column.
@return Column in the table */
public int getAD_Column_ID() 
{
Integer ii = (Integer)get_Value("AD_Column_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Special Form.
@param AD_Form_ID Special Form */
public void setAD_Form_ID (int AD_Form_ID)
{
if (AD_Form_ID <= 0) set_Value ("AD_Form_ID", null);
else
set_Value ("AD_Form_ID", new Integer(AD_Form_ID));
}
/** Get Special Form.
@return Special Form */
public int getAD_Form_ID() 
{
Integer ii = (Integer)get_Value("AD_Form_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Image.
@param AD_Image_ID Image or Icon */
public void setAD_Image_ID (int AD_Image_ID)
{
if (AD_Image_ID <= 0) set_Value ("AD_Image_ID", null);
else
set_Value ("AD_Image_ID", new Integer(AD_Image_ID));
}
/** Get Image.
@return Image or Icon */
public int getAD_Image_ID() 
{
Integer ii = (Integer)get_Value("AD_Image_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Process.
@param AD_Process_ID Process or Report */
public void setAD_Process_ID (int AD_Process_ID)
{
if (AD_Process_ID <= 0) set_Value ("AD_Process_ID", null);
else
set_Value ("AD_Process_ID", new Integer(AD_Process_ID));
}
/** Get Process.
@return Process or Report */
public int getAD_Process_ID() 
{
Integer ii = (Integer)get_Value("AD_Process_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set OS Task.
@param AD_Task_ID Operation System Task */
public void setAD_Task_ID (int AD_Task_ID)
{
if (AD_Task_ID <= 0) set_Value ("AD_Task_ID", null);
else
set_Value ("AD_Task_ID", new Integer(AD_Task_ID));
}
/** Get OS Task.
@return Operation System Task */
public int getAD_Task_ID() 
{
Integer ii = (Integer)get_Value("AD_Task_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Workflow Block.
@param AD_WF_Block_ID Workflow Transaction Execution Block */
public void setAD_WF_Block_ID (int AD_WF_Block_ID)
{
if (AD_WF_Block_ID <= 0) set_Value ("AD_WF_Block_ID", null);
else
set_Value ("AD_WF_Block_ID", new Integer(AD_WF_Block_ID));
}
/** Get Workflow Block.
@return Workflow Transaction Execution Block */
public int getAD_WF_Block_ID() 
{
Integer ii = (Integer)get_Value("AD_WF_Block_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Node.
@param AD_WF_Node_ID Workflow Node (activity), step or process */
public void setAD_WF_Node_ID (int AD_WF_Node_ID)
{
if (AD_WF_Node_ID < 1) throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory.");
set_ValueNoCheck ("AD_WF_Node_ID", new Integer(AD_WF_Node_ID));
}
/** Get Node.
@return Workflow Node (activity), step or process */
public int getAD_WF_Node_ID() 
{
Integer ii = (Integer)get_Value("AD_WF_Node_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Workflow Responsible.
@param AD_WF_Responsible_ID Responsible for Workflow Execution */
public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID)
{
if (AD_WF_Responsible_ID <= 0) set_Value ("AD_WF_Responsible_ID", null);
else
set_Value ("AD_WF_Responsible_ID", new Integer(AD_WF_Responsible_ID));
}
/** Get Workflow Responsible.
@return Responsible for Workflow Execution */
public int getAD_WF_Responsible_ID() 
{
Integer ii = (Integer)get_Value("AD_WF_Responsible_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Window.
@param AD_Window_ID Data entry or display window */
public void setAD_Window_ID (int AD_Window_ID)
{
if (AD_Window_ID <= 0) set_Value ("AD_Window_ID", null);
else
set_Value ("AD_Window_ID", new Integer(AD_Window_ID));
}
/** Get Window.
@return Data entry or display window */
public int getAD_Window_ID() 
{
Integer ii = (Integer)get_Value("AD_Window_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Workflow.
@param AD_Workflow_ID Workflow or combination of tasks */
public void setAD_Workflow_ID (int AD_Workflow_ID)
{
if (AD_Workflow_ID < 1) throw new IllegalArgumentException ("AD_Workflow_ID is mandatory.");
set_ValueNoCheck ("AD_Workflow_ID", new Integer(AD_Workflow_ID));
}
/** Get Workflow.
@return Workflow or combination of tasks */
public int getAD_Workflow_ID() 
{
Integer ii = (Integer)get_Value("AD_Workflow_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** Action AD_Reference_ID=302 */
public static final int ACTION_AD_Reference_ID=302;
/** User Workbench = B */
public static final String ACTION_UserWorkbench = "B";
/** User Choice = C */
public static final String ACTION_UserChoice = "C";
/** Document Action = D */
public static final String ACTION_DocumentAction = "D";
/** Sub Workflow = F */
public static final String ACTION_SubWorkflow = "F";
/** EMail = M */
public static final String ACTION_EMail = "M";
/** Apps Process = P */
public static final String ACTION_AppsProcess = "P";
/** Apps Report = R */
public static final String ACTION_AppsReport = "R";
/** Apps Task = T */
public static final String ACTION_AppsTask = "T";
/** Set Variable = V */
public static final String ACTION_SetVariable = "V";
/** User Window = W */
public static final String ACTION_UserWindow = "W";
/** User Form = X */
public static final String ACTION_UserForm = "X";
/** Wait (Sleep) = Z */
public static final String ACTION_WaitSleep = "Z";
/** Is test a valid value.
@param test testvalue
@returns true if valid **/
public boolean isActionValid (String test)
{
return test.equals("B") || test.equals("C") || test.equals("D") || test.equals("F") || test.equals("M") || test.equals("P") || test.equals("R") || test.equals("T") || test.equals("V") || test.equals("W") || test.equals("X") || test.equals("Z");
}
/** Set Action.
@param Action Indicates the Action to be performed */
public void setAction (String Action)
{
if (Action == null) throw new IllegalArgumentException ("Action is mandatory");
if (!isActionValid(Action))
throw new IllegalArgumentException ("Action Invalid value - " + Action + " - Reference_ID=302 - B - C - D - F - M - P - R - T - V - W - X - Z");
if (Action.length() > 1)
{
log.warning("Length > 1 - truncated");
Action = Action.substring(0,1);
}
set_Value ("Action", Action);
}
/** Get Action.
@return Indicates the Action to be performed */
public String getAction() 
{
return (String)get_Value("Action");
}
/** Set Attribute Name.
@param AttributeName Name of the Attribute */
public void setAttributeName (String AttributeName)
{
if (AttributeName != null && AttributeName.length() > 60)
{
log.warning("Length > 60 - truncated");
AttributeName = AttributeName.substring(0,60);
}
set_Value ("AttributeName", AttributeName);
}
/** Get Attribute Name.
@return Name of the Attribute */
public String getAttributeName() 
{
return (String)get_Value("AttributeName");
}
/** Set Attribute Value.
@param AttributeValue Value of the Attribute */
public void setAttributeValue (String AttributeValue)
{
if (AttributeValue != null && AttributeValue.length() > 60)
{
log.warning("Length > 60 - truncated");
AttributeValue = AttributeValue.substring(0,60);
}
set_Value ("AttributeValue", AttributeValue);
}
/** Get Attribute Value.
@return Value of the Attribute */
public String getAttributeValue() 
{
return (String)get_Value("AttributeValue");
}
/** Set Cost.
@param Cost Cost information */
public void setCost (BigDecimal Cost)
{
set_Value ("Cost", Cost);
}
/** Get Cost.
@return Cost information */
public BigDecimal getCost() 
{
BigDecimal bd = (BigDecimal)get_Value("Cost");
if (bd == null) return Env.ZERO;
return bd;
}
/** Set Description.
@param Description Optional short description of the record */
public void setDescription (String Description)
{
if (Description != null && Description.length() > 255)
{
log.warning("Length > 255 - truncated");
Description = Description.substring(0,255);
}
set_Value ("Description", Description);
}
/** Get Description.
@return Optional short description of the record */
public String getDescription() 
{
return (String)get_Value("Description");
}

/** DocAction AD_Reference_ID=135 */
public static final int DOCACTION_AD_Reference_ID=135;
/** <None> = -- */
public static final String DOCACTION_None = "--";
/** Approve = AP */
public static final String DOCACTION_Approve = "AP";
/** Close = CL */
public static final String DOCACTION_Close = "CL";
/** Complete = CO */
public static final String DOCACTION_Complete = "CO";
/** Invalidate = IN */
public static final String DOCACTION_Invalidate = "IN";
/** Post = PO */
public static final String DOCACTION_Post = "PO";
/** Prepare = PR */
public static final String DOCACTION_Prepare = "PR";
/** Reverse - Accrual = RA */
public static final String DOCACTION_Reverse_Accrual = "RA";
/** Reverse - Correct = RC */
public static final String DOCACTION_Reverse_Correct = "RC";
/** Re-activate = RE */
public static final String DOCACTION_Re_Activate = "RE";
/** Reject = RJ */
public static final String DOCACTION_Reject = "RJ";
/** Void = VO */
public static final String DOCACTION_Void = "VO";
/** Wait Complete = WC */
public static final String DOCACTION_WaitComplete = "WC";
/** Unlock = XL */
public static final String DOCACTION_Unlock = "XL";
/** Is test a valid value.
@param test testvalue
@returns true if valid **/
public boolean isDocActionValid (String test)
{
return test == null || test.equals("--") || test.equals("AP") || test.equals("CL") || test.equals("CO") || test.equals("IN") || test.equals("PO") || test.equals("PR") || test.equals("RA") || test.equals("RC") || test.equals("RE") || test.equals("RJ") || test.equals("VO") || test.equals("WC") || test.equals("XL");
}
/** Set Document Action.
@param DocAction The targeted status of the document */
public void setDocAction (String DocAction)
{
if (!isDocActionValid(DocAction))
throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL");
if (DocAction != null && DocAction.length() > 2)
{
log.warning("Length > 2 - truncated");
DocAction = DocAction.substring(0,2);
}
set_Value ("DocAction", DocAction);
}
/** Get Document Action.
@return The targeted status of the document */
public String getDocAction() 
{
return (String)get_Value("DocAction");
}
/** Set Duration.
@param Duration Normal Duration in Duration Unit */
public void setDuration (int Duration)
{
set_Value ("Duration", new Integer(Duration));
}
/** Get Duration.
@return Normal Duration in Duration Unit */
public int getDuration() 
{
Integer ii = (Integer)get_Value("Duration");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Duration Limit.
@param DurationLimit Maximum Duration in Duration Unit */
public void setDurationLimit (int DurationLimit)
{
set_Value ("DurationLimit", new Integer(DurationLimit));
}
/** Get Duration Limit.
@return Maximum Duration in Duration Unit */
public int getDurationLimit() 
{
Integer ii = (Integer)get_Value("DurationLimit");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Dynamic Priority Change.
@param DynPriorityChange Change of priority when Activity is suspended waiting for user */
public void setDynPriorityChange (BigDecimal DynPriorityChange)
{
set_Value ("DynPriorityChange", DynPriorityChange);
}
/** Get Dynamic Priority Change.
@return Change of priority when Activity is suspended waiting for user */
public BigDecimal getDynPriorityChange() 
{
BigDecimal bd = (BigDecimal)get_Value("DynPriorityChange");
if (bd == null) return Env.ZERO;
return bd;
}

/** DynPriorityUnit AD_Reference_ID=221 */
public static final int DYNPRIORITYUNIT_AD_Reference_ID=221;
/** Day = D */
public static final String DYNPRIORITYUNIT_Day = "D";
/** Hour = H */
public static final String DYNPRIORITYUNIT_Hour = "H";
/** Minute = M */
public static final String DYNPRIORITYUNIT_Minute = "M";
/** Is test a valid value.
@param test testvalue
@returns true if valid **/
public boolean isDynPriorityUnitValid (String test)
{
return test == null || test.equals("D") || test.equals("H") || test.equals("M");
}
/** Set Dynamic Priority Unit.
@param DynPriorityUnit Change of priority when Activity is suspended waiting for user */
public void setDynPriorityUnit (String DynPriorityUnit)
{
if (!isDynPriorityUnitValid(DynPriorityUnit))
throw new IllegalArgumentException ("DynPriorityUnit Invalid value - " + DynPriorityUnit + " - Reference_ID=221 - D - H - M");
if (DynPriorityUnit != null && DynPriorityUnit.length() > 1)
{
log.warning("Length > 1 - truncated");
DynPriorityUnit = DynPriorityUnit.substring(0,1);
}
set_Value ("DynPriorityUnit", DynPriorityUnit);
}
/** Get Dynamic Priority Unit.
@return Change of priority when Activity is suspended waiting for user */
public String getDynPriorityUnit() 
{
return (String)get_Value("DynPriorityUnit");
}
/** Set EMail Address.
@param EMail Electronic Mail Address */
public void setEMail (String EMail)
{
if (EMail != null && EMail.length() > 60)
{
log.warning("Length > 60 - truncated");
EMail = EMail.substring(0,60);
}
set_Value ("EMail", EMail);
}
/** Get EMail Address.
@return Electronic Mail Address */
public String getEMail() 
{
return (String)get_Value("EMail");
}

/** EMailRecipient AD_Reference_ID=363 */
public static final int EMAILRECIPIENT_AD_Reference_ID=363;
/** Document Business Partner = B */
public static final String EMAILRECIPIENT_DocumentBusinessPartner = "B";
/** Document Owner = D */
public static final String EMAILRECIPIENT_DocumentOwner = "D";
/** WF Responsible = R */
public static final String EMAILRECIPIENT_WFResponsible = "R";
/** Is test a valid value.
@param test testvalue
@returns true if valid **/
public boolean isEMailRecipientValid (String test)
{
return test == null || test.equals("B") || test.equals("D") || test.equals("R");
}
/** Set EMail Recipient.
@param EMailRecipient Recipient of the EMail */
public void setEMailRecipient (String EMailRecipient)
{
if (!isEMailRecipientValid(EMailRecipient))
throw new IllegalArgumentException ("EMailRecipient Invalid value - " + EMailRecipient + " - Reference_ID=363 - B - D - R");
if (EMailRecipient != null && EMailRecipient.length() > 1)
{
log.warning("Length > 1 - truncated");
EMailRecipient = EMailRecipient.substring(0,1);
}
set_Value ("EMailRecipient", EMailRecipient);
}
/** Get EMail Recipient.
@return Recipient of the EMail */
public String getEMailRecipient() 
{
return (String)get_Value("EMailRecipient");
}

/** EntityType AD_Reference_ID=389 */
public static final int ENTITYTYPE_AD_Reference_ID=389;
/** Set Entity Type.
@param EntityType Dictionary Entity Type;
 Determines ownership and synchronization */
public void setEntityType (String EntityType)
{
if (EntityType.length() > 4)
{
log.warning("Length > 4 - truncated");
EntityType = EntityType.substring(0,4);
}
set_Value ("EntityType", EntityType);
}
/** Get Entity Type.
@return Dictionary Entity Type;
 Determines ownership and synchronization */
public String getEntityType() 
{
return (String)get_Value("EntityType");
}

/** FinishMode AD_Reference_ID=303 */
public static final int FINISHMODE_AD_Reference_ID=303;
/** Automatic = A */
public static final String FINISHMODE_Automatic = "A";
/** Manual = M */
public static final String FINISHMODE_Manual = "M";
/** Is test a valid value.
@param test testvalue
@returns true if valid **/
public boolean isFinishModeValid (String test)
{
return test == null || test.equals("A") || test.equals("M");
}
/** Set Finish Mode.
@param FinishMode Workflow Activity Finish Mode */
public void setFinishMode (String FinishMode)
{
if (!isFinishModeValid(FinishMode))
throw new IllegalArgumentException ("FinishMode Invalid value - " + FinishMode + " - Reference_ID=303 - A - M");
if (FinishMode != null && FinishMode.length() > 1)
{
log.warning("Length > 1 - truncated");
FinishMode = FinishMode.substring(0,1);
}
set_Value ("FinishMode", FinishMode);
}
/** Get Finish Mode.
@return Workflow Activity Finish Mode */
public String getFinishMode() 
{
return (String)get_Value("FinishMode");
}
/** Set Comment.
@param Help Comment, Help or Hint */
public void setHelp (String Help)
{
if (Help != null && Help.length() > 2000)
{
log.warning("Length > 2000 - truncated");
Help = Help.substring(0,2000);
}
set_Value ("Help", Help);
}
/** Get Comment.
@return Comment, Help or Hint */
public String getHelp() 
{
return (String)get_Value("Help");
}
/** Set Centrally maintained.
@param IsCentrallyMaintained Information maintained in System Element table */
public void setIsCentrallyMaintained (boolean IsCentrallyMaintained)
{
set_Value ("IsCentrallyMaintained", new Boolean(IsCentrallyMaintained));
}
/** Get Centrally maintained.
@return Information maintained in System Element table */
public boolean isCentrallyMaintained() 
{
Object oo = get_Value("IsCentrallyMaintained");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}

/** JoinElement AD_Reference_ID=301 */
public static final int JOINELEMENT_AD_Reference_ID=301;
/** AND = A */
public static final String JOINELEMENT_AND = "A";
/** XOR = X */
public static final String JOINELEMENT_XOR = "X";
/** Is test a valid value.
@param test testvalue
@returns true if valid **/
public boolean isJoinElementValid (String test)
{
return test.equals("A") || test.equals("X");
}
/** Set Join Element.
@param JoinElement Semantics for multiple incoming Transitions */
public void setJoinElement (String JoinElement)
{
if (JoinElement == null) throw new IllegalArgumentException ("JoinElement is mandatory");
if (!isJoinElementValid(JoinElement))
throw new IllegalArgumentException ("JoinElement Invalid value - " + JoinElement + " - Reference_ID=301 - A - X");
if (JoinElement.length() > 1)
{
log.warning("Length > 1 - truncated");
JoinElement = JoinElement.substring(0,1);
}
set_Value ("JoinElement", JoinElement);
}
/** Get Join Element.
@return Semantics for multiple incoming Transitions */
public String getJoinElement() 
{
return (String)get_Value("JoinElement");
}
/** Set Name.
@param Name Alphanumeric identifier of the entity */
public void setName (String Name)
{
if (Name == null) throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60)
{
log.warning("Length > 60 - truncated");
Name = Name.substring(0,60);
}
set_Value ("Name", Name);
}
/** Get Name.
@return Alphanumeric identifier of the entity */
public String getName() 
{
return (String)get_Value("Name");
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair */
public KeyNamePair getKeyNamePair() 
{
return new KeyNamePair(get_ID(), getName());
}
/** Set Priority.
@param Priority Indicates if this request is of a high, medium or low priority. */
public void setPriority (int Priority)
{
set_Value ("Priority", new Integer(Priority));
}
/** Get Priority.
@return Indicates if this request is of a high, medium or low priority. */
public int getPriority() 
{
Integer ii = (Integer)get_Value("Priority");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Mail Template.
@param R_MailText_ID Text templates for mailings */
public void setR_MailText_ID (int R_MailText_ID)
{
if (R_MailText_ID <= 0) set_Value ("R_MailText_ID", null);
else
set_Value ("R_MailText_ID", new Integer(R_MailText_ID));
}
/** Get Mail Template.
@return Text templates for mailings */
public int getR_MailText_ID() 
{
Integer ii = (Integer)get_Value("R_MailText_ID");
if (ii == null) return 0;
return ii.intValue();
}

/** SplitElement AD_Reference_ID=301 */
public static final int SPLITELEMENT_AD_Reference_ID=301;
/** AND = A */
public static final String SPLITELEMENT_AND = "A";
/** XOR = X */
public static final String SPLITELEMENT_XOR = "X";
/** Is test a valid value.
@param test testvalue
@returns true if valid **/
public boolean isSplitElementValid (String test)
{
return test.equals("A") || test.equals("X");
}
/** Set Split Element.
@param SplitElement Semantics for multiple outgoing Transitions */
public void setSplitElement (String SplitElement)
{
if (SplitElement == null) throw new IllegalArgumentException ("SplitElement is mandatory");
if (!isSplitElementValid(SplitElement))
throw new IllegalArgumentException ("SplitElement Invalid value - " + SplitElement + " - Reference_ID=301 - A - X");
if (SplitElement.length() > 1)
{
log.warning("Length > 1 - truncated");
SplitElement = SplitElement.substring(0,1);
}
set_Value ("SplitElement", SplitElement);
}
/** Get Split Element.
@return Semantics for multiple outgoing Transitions */
public String getSplitElement() 
{
return (String)get_Value("SplitElement");
}

/** StartMode AD_Reference_ID=303 */
public static final int STARTMODE_AD_Reference_ID=303;
/** Automatic = A */
public static final String STARTMODE_Automatic = "A";
/** Manual = M */
public static final String STARTMODE_Manual = "M";
/** Is test a valid value.
@param test testvalue
@returns true if valid **/
public boolean isStartModeValid (String test)
{
return test == null || test.equals("A") || test.equals("M");
}
/** Set Start Mode.
@param StartMode Workflow Activity Start Mode  */
public void setStartMode (String StartMode)
{
if (!isStartModeValid(StartMode))
throw new IllegalArgumentException ("StartMode Invalid value - " + StartMode + " - Reference_ID=303 - A - M");
if (StartMode != null && StartMode.length() > 1)
{
log.warning("Length > 1 - truncated");
StartMode = StartMode.substring(0,1);
}
set_Value ("StartMode", StartMode);
}
/** Get Start Mode.
@return Workflow Activity Start Mode  */
public String getStartMode() 
{
return (String)get_Value("StartMode");
}

/** SubflowExecution AD_Reference_ID=307 */
public static final int SUBFLOWEXECUTION_AD_Reference_ID=307;
/** Asynchronously = A */
public static final String SUBFLOWEXECUTION_Asynchronously = "A";
/** Synchronously = S */
public static final String SUBFLOWEXECUTION_Synchronously = "S";
/** Is test a valid value.
@param test testvalue
@returns true if valid **/
public boolean isSubflowExecutionValid (String test)
{
return test == null || test.equals("A") || test.equals("S");
}
/** Set Subflow Execution.
@param SubflowExecution Mode how the sub-workflow is executed */
public void setSubflowExecution (String SubflowExecution)
{
if (!isSubflowExecutionValid(SubflowExecution))
throw new IllegalArgumentException ("SubflowExecution Invalid value - " + SubflowExecution + " - Reference_ID=307 - A - S");
if (SubflowExecution != null && SubflowExecution.length() > 1)
{
log.warning("Length > 1 - truncated");
SubflowExecution = SubflowExecution.substring(0,1);
}
set_Value ("SubflowExecution", SubflowExecution);
}
/** Get Subflow Execution.
@return Mode how the sub-workflow is executed */
public String getSubflowExecution() 
{
return (String)get_Value("SubflowExecution");
}
/** Set Search Key.
@param Value Search key for the record in the format required - must be unique */
public void setValue (String Value)
{
if (Value == null) throw new IllegalArgumentException ("Value is mandatory.");
if (Value.length() > 40)
{
log.warning("Length > 40 - truncated");
Value = Value.substring(0,40);
}
set_Value ("Value", Value);
}
/** Get Search Key.
@return Search key for the record in the format required - must be unique */
public String getValue() 
{
return (String)get_Value("Value");
}
/** Set Wait Time.
@param WaitTime Time in minutes to wait (sleep) */
public void setWaitTime (int WaitTime)
{
set_Value ("WaitTime", new Integer(WaitTime));
}
/** Get Wait Time.
@return Time in minutes to wait (sleep) */
public int getWaitTime() 
{
Integer ii = (Integer)get_Value("WaitTime");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Waiting Time.
@param WaitingTime Workflow Simulation Waiting time */
public void setWaitingTime (int WaitingTime)
{
set_Value ("WaitingTime", new Integer(WaitingTime));
}
/** Get Waiting Time.
@return Workflow Simulation Waiting time */
public int getWaitingTime() 
{
Integer ii = (Integer)get_Value("WaitingTime");
if (ii == null) return 0;
return ii.intValue();
}

/** Workflow_ID AD_Reference_ID=174 */
public static final int WORKFLOW_ID_AD_Reference_ID=174;
/** Set Workflow.
@param Workflow_ID Workflow or tasks */
public void setWorkflow_ID (int Workflow_ID)
{
if (Workflow_ID <= 0) set_Value ("Workflow_ID", null);
else
set_Value ("Workflow_ID", new Integer(Workflow_ID));
}
/** Get Workflow.
@return Workflow or tasks */
public int getWorkflow_ID() 
{
Integer ii = (Integer)get_Value("Workflow_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Working Time.
@param WorkingTime Workflow Simulation Execution Time */
public void setWorkingTime (int WorkingTime)
{
set_Value ("WorkingTime", new Integer(WorkingTime));
}
/** Get Working Time.
@return Workflow Simulation Execution Time */
public int getWorkingTime() 
{
Integer ii = (Integer)get_Value("WorkingTime");
if (ii == null) return 0;
return ii.intValue();
}
/** Set X Position.
@param XPosition Absolute X (horizontal) position in 1/72 of an inch */
public void setXPosition (int XPosition)
{
set_Value ("XPosition", new Integer(XPosition));
}
/** Get X Position.
@return Absolute X (horizontal) position in 1/72 of an inch */
public int getXPosition() 
{
Integer ii = (Integer)get_Value("XPosition");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Y Position.
@param YPosition Absolute Y (vertical) position in 1/72 of an inch */
public void setYPosition (int YPosition)
{
set_Value ("YPosition", new Integer(YPosition));
}
/** Get Y Position.
@return Absolute Y (vertical) position in 1/72 of an inch */
public int getYPosition() 
{
Integer ii = (Integer)get_Value("YPosition");
if (ii == null) return 0;
return ii.intValue();
}
}
