PageRenderTime 36ms CodeModel.GetById 10ms app.highlight 22ms RepoModel.GetById 0ms app.codeStats 0ms

/projects/compiere-330/ad/src/org/compiere/model/X_AD_WF_Node.java

https://gitlab.com/essere.lab.public/qualitas.class-corpus
Java | 976 lines | 482 code | 191 blank | 303 comment | 31 complexity | 81ee964a731335f1e251fd4f7d4e7f1f MD5 | raw file
  1/******************************************************************************
  2 * Product: Compiere ERP & CRM Smart Business Solution                        *
  3 * Copyright (C) 1999-2008 Compiere, Inc. All Rights Reserved.                *
  4 * This program is free software, you can redistribute it and/or modify it    *
  5 * under the terms version 2 of the GNU General Public License as published   *
  6 * by the Free Software Foundation. This program is distributed in the hope   *
  7 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
  8 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
  9 * See the GNU General Public License for more details.                       *
 10 * You should have received a copy of the GNU General Public License along    *
 11 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 12 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 13 * For the text or an alternative of this public license, you may reach us at *
 14 * Compiere, Inc., 3600 Bridge Parkway #102, Redwood City, CA 94065, USA      *
 15 * or via info@compiere.org or http://www.compiere.org/license.html           *
 16 *****************************************************************************/
 17package org.compiere.model;
 18
 19/** Generated Model - DO NOT CHANGE */
 20import java.sql.*;
 21import org.compiere.framework.*;
 22import org.compiere.util.*;
 23/** Generated Model for AD_WF_Node
 24 *  @author Jorg Janke (generated) 
 25 *  @version Release 3.2.2_Dev - $Id$ */
 26public class X_AD_WF_Node extends PO
 27{
 28    /** Standard Constructor
 29    @param ctx context
 30    @param AD_WF_Node_ID id
 31    @param trx transaction
 32    */
 33    public X_AD_WF_Node (Ctx ctx, int AD_WF_Node_ID, Trx trx)
 34    {
 35        super (ctx, AD_WF_Node_ID, trx);
 36        
 37        /* The following are the mandatory fields for this object.
 38        
 39        if (AD_WF_Node_ID == 0)
 40        {
 41            setAD_WF_Node_ID (0);
 42            setAD_Workflow_ID (0);
 43            setAction (null);	// N
 44            setDuration (0);
 45            setDurationLimit (0);
 46            setEntityType (null);	// U
 47            setIsCentrallyMaintained (true);	// Y
 48            setJoinElement (null);	// X
 49            setName (null);
 50            setSplitElement (null);	// X
 51            setValue (null);
 52            setWaitingTime (0);
 53            setXPosition (0);
 54            setYPosition (0);
 55            
 56        }
 57        */
 58        
 59    }
 60    /** Load Constructor 
 61    @param ctx context
 62    @param rs result set 
 63    @param trx transaction
 64    */
 65    public X_AD_WF_Node (Ctx ctx, ResultSet rs, Trx trx)
 66    {
 67        super (ctx, rs, trx);
 68        
 69    }
 70    /** Serial Version No */
 71    private static final long serialVersionUID = 27495261242789L;
 72    /** Last Updated Timestamp 2008-06-10 15:12:06.0 */
 73    public static final long updatedMS = 1213135926000L;
 74    /** AD_Table_ID=129 */
 75    public static final int Table_ID=129;
 76    
 77    /** TableName=AD_WF_Node */
 78    public static final String Table_Name="AD_WF_Node";
 79    
 80    protected static KeyNamePair Model = new KeyNamePair(Table_ID,"AD_WF_Node");
 81    
 82    /**
 83     *  Get AD Table ID.
 84     *  @return AD_Table_ID
 85     */
 86    @Override public int get_Table_ID()
 87    {
 88        return Table_ID;
 89        
 90    }
 91    /** Set Column.
 92    @param AD_Column_ID Column in the table */
 93    public void setAD_Column_ID (int AD_Column_ID)
 94    {
 95        if (AD_Column_ID <= 0) set_Value ("AD_Column_ID", null);
 96        else
 97        set_Value ("AD_Column_ID", Integer.valueOf(AD_Column_ID));
 98        
 99    }
100    
101    /** Get Column.
102    @return Column in the table */
103    public int getAD_Column_ID() 
104    {
105        return get_ValueAsInt("AD_Column_ID");
106        
107    }
108    
109    /** Set Special Form.
110    @param AD_Form_ID Special Form */
111    public void setAD_Form_ID (int AD_Form_ID)
112    {
113        if (AD_Form_ID <= 0) set_Value ("AD_Form_ID", null);
114        else
115        set_Value ("AD_Form_ID", Integer.valueOf(AD_Form_ID));
116        
117    }
118    
119    /** Get Special Form.
120    @return Special Form */
121    public int getAD_Form_ID() 
122    {
123        return get_ValueAsInt("AD_Form_ID");
124        
125    }
126    
127    /** Set Image.
128    @param AD_Image_ID Image or Icon */
129    public void setAD_Image_ID (int AD_Image_ID)
130    {
131        if (AD_Image_ID <= 0) set_Value ("AD_Image_ID", null);
132        else
133        set_Value ("AD_Image_ID", Integer.valueOf(AD_Image_ID));
134        
135    }
136    
137    /** Get Image.
138    @return Image or Icon */
139    public int getAD_Image_ID() 
140    {
141        return get_ValueAsInt("AD_Image_ID");
142        
143    }
144    
145    /** Set Process.
146    @param AD_Process_ID Process or Report */
147    public void setAD_Process_ID (int AD_Process_ID)
148    {
149        if (AD_Process_ID <= 0) set_Value ("AD_Process_ID", null);
150        else
151        set_Value ("AD_Process_ID", Integer.valueOf(AD_Process_ID));
152        
153    }
154    
155    /** Get Process.
156    @return Process or Report */
157    public int getAD_Process_ID() 
158    {
159        return get_ValueAsInt("AD_Process_ID");
160        
161    }
162    
163    /** Set OS Task.
164    @param AD_Task_ID Operation System Task */
165    public void setAD_Task_ID (int AD_Task_ID)
166    {
167        if (AD_Task_ID <= 0) set_Value ("AD_Task_ID", null);
168        else
169        set_Value ("AD_Task_ID", Integer.valueOf(AD_Task_ID));
170        
171    }
172    
173    /** Get OS Task.
174    @return Operation System Task */
175    public int getAD_Task_ID() 
176    {
177        return get_ValueAsInt("AD_Task_ID");
178        
179    }
180    
181    /** Set Workflow Block.
182    @param AD_WF_Block_ID Workflow Transaction Execution Block */
183    public void setAD_WF_Block_ID (int AD_WF_Block_ID)
184    {
185        if (AD_WF_Block_ID <= 0) set_Value ("AD_WF_Block_ID", null);
186        else
187        set_Value ("AD_WF_Block_ID", Integer.valueOf(AD_WF_Block_ID));
188        
189    }
190    
191    /** Get Workflow Block.
192    @return Workflow Transaction Execution Block */
193    public int getAD_WF_Block_ID() 
194    {
195        return get_ValueAsInt("AD_WF_Block_ID");
196        
197    }
198    
199    /** Set Node.
200    @param AD_WF_Node_ID Workflow Node (activity), step or process */
201    public void setAD_WF_Node_ID (int AD_WF_Node_ID)
202    {
203        if (AD_WF_Node_ID < 1) throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory.");
204        set_ValueNoCheck ("AD_WF_Node_ID", Integer.valueOf(AD_WF_Node_ID));
205        
206    }
207    
208    /** Get Node.
209    @return Workflow Node (activity), step or process */
210    public int getAD_WF_Node_ID() 
211    {
212        return get_ValueAsInt("AD_WF_Node_ID");
213        
214    }
215    
216    /** Set Workflow Responsible.
217    @param AD_WF_Responsible_ID Responsible for Workflow Execution */
218    public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID)
219    {
220        if (AD_WF_Responsible_ID <= 0) set_Value ("AD_WF_Responsible_ID", null);
221        else
222        set_Value ("AD_WF_Responsible_ID", Integer.valueOf(AD_WF_Responsible_ID));
223        
224    }
225    
226    /** Get Workflow Responsible.
227    @return Responsible for Workflow Execution */
228    public int getAD_WF_Responsible_ID() 
229    {
230        return get_ValueAsInt("AD_WF_Responsible_ID");
231        
232    }
233    
234    /** Set Window.
235    @param AD_Window_ID Data entry or display window */
236    public void setAD_Window_ID (int AD_Window_ID)
237    {
238        if (AD_Window_ID <= 0) set_Value ("AD_Window_ID", null);
239        else
240        set_Value ("AD_Window_ID", Integer.valueOf(AD_Window_ID));
241        
242    }
243    
244    /** Get Window.
245    @return Data entry or display window */
246    public int getAD_Window_ID() 
247    {
248        return get_ValueAsInt("AD_Window_ID");
249        
250    }
251    
252    /** Set Workflow.
253    @param AD_Workflow_ID Workflow or combination of tasks */
254    public void setAD_Workflow_ID (int AD_Workflow_ID)
255    {
256        if (AD_Workflow_ID < 1) throw new IllegalArgumentException ("AD_Workflow_ID is mandatory.");
257        set_ValueNoCheck ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID));
258        
259    }
260    
261    /** Get Workflow.
262    @return Workflow or combination of tasks */
263    public int getAD_Workflow_ID() 
264    {
265        return get_ValueAsInt("AD_Workflow_ID");
266        
267    }
268    
269    
270    /** Action AD_Reference_ID=302 */
271    public static final int ACTION_AD_Reference_ID=302;
272    /** User Workbench = B */
273    public static final String ACTION_UserWorkbench = X_Ref_WF_Action.USER_WORKBENCH.getValue();
274    /** User Choice = C */
275    public static final String ACTION_UserChoice = X_Ref_WF_Action.USER_CHOICE.getValue();
276    /** Document Action = D */
277    public static final String ACTION_DocumentAction = X_Ref_WF_Action.DOCUMENT_ACTION.getValue();
278    /** Sub Workflow = F */
279    public static final String ACTION_SubWorkflow = X_Ref_WF_Action.SUB_WORKFLOW.getValue();
280    /** EMail = M */
281    public static final String ACTION_EMail = X_Ref_WF_Action.E_MAIL.getValue();
282    /** Apps Process = P */
283    public static final String ACTION_AppsProcess = X_Ref_WF_Action.APPS_PROCESS.getValue();
284    /** Apps Report = R */
285    public static final String ACTION_AppsReport = X_Ref_WF_Action.APPS_REPORT.getValue();
286    /** Apps Task = T */
287    public static final String ACTION_AppsTask = X_Ref_WF_Action.APPS_TASK.getValue();
288    /** Set Variable = V */
289    public static final String ACTION_SetVariable = X_Ref_WF_Action.SET_VARIABLE.getValue();
290    /** User Window = W */
291    public static final String ACTION_UserWindow = X_Ref_WF_Action.USER_WINDOW.getValue();
292    /** User Form = X */
293    public static final String ACTION_UserForm = X_Ref_WF_Action.USER_FORM.getValue();
294    /** Wait (Sleep) = Z */
295    public static final String ACTION_WaitSleep = X_Ref_WF_Action.WAIT_SLEEP.getValue();
296    /** Is test a valid value.
297    @param test testvalue
298    @return true if valid **/
299    public static boolean isActionValid(String test)
300    {
301         return X_Ref_WF_Action.isValid(test);
302         
303    }
304    /** Set Action.
305    @param Action Indicates the Action to be performed */
306    public void setAction (String Action)
307    {
308        if (Action == null) throw new IllegalArgumentException ("Action is mandatory");
309        if (!isActionValid(Action))
310        throw new IllegalArgumentException ("Action Invalid value - " + Action + " - Reference_ID=302 - B - C - D - F - M - P - R - T - V - W - X - Z");
311        set_Value ("Action", Action);
312        
313    }
314    
315    /** Get Action.
316    @return Indicates the Action to be performed */
317    public String getAction() 
318    {
319        return (String)get_Value("Action");
320        
321    }
322    
323    /** Set Attribute Name.
324    @param AttributeName Name of the Attribute */
325    public void setAttributeName (String AttributeName)
326    {
327        set_Value ("AttributeName", AttributeName);
328        
329    }
330    
331    /** Get Attribute Name.
332    @return Name of the Attribute */
333    public String getAttributeName() 
334    {
335        return (String)get_Value("AttributeName");
336        
337    }
338    
339    /** Set Attribute Value.
340    @param AttributeValue Value of the Attribute */
341    public void setAttributeValue (String AttributeValue)
342    {
343        set_Value ("AttributeValue", AttributeValue);
344        
345    }
346    
347    /** Get Attribute Value.
348    @return Value of the Attribute */
349    public String getAttributeValue() 
350    {
351        return (String)get_Value("AttributeValue");
352        
353    }
354    
355    /** Set Cost.
356    @param Cost Cost information */
357    public void setCost (java.math.BigDecimal Cost)
358    {
359        set_Value ("Cost", Cost);
360        
361    }
362    
363    /** Get Cost.
364    @return Cost information */
365    public java.math.BigDecimal getCost() 
366    {
367        return get_ValueAsBigDecimal("Cost");
368        
369    }
370    
371    /** Set Description.
372    @param Description Optional short description of the record */
373    public void setDescription (String Description)
374    {
375        set_Value ("Description", Description);
376        
377    }
378    
379    /** Get Description.
380    @return Optional short description of the record */
381    public String getDescription() 
382    {
383        return (String)get_Value("Description");
384        
385    }
386    
387    
388    /** DocAction AD_Reference_ID=135 */
389    public static final int DOCACTION_AD_Reference_ID=135;
390    /** <None> = -- */
391    public static final String DOCACTION_None = X_Ref__Document_Action.NONE.getValue();
392    /** Approve = AP */
393    public static final String DOCACTION_Approve = X_Ref__Document_Action.APPROVE.getValue();
394    /** Close = CL */
395    public static final String DOCACTION_Close = X_Ref__Document_Action.CLOSE.getValue();
396    /** Complete = CO */
397    public static final String DOCACTION_Complete = X_Ref__Document_Action.COMPLETE.getValue();
398    /** Invalidate = IN */
399    public static final String DOCACTION_Invalidate = X_Ref__Document_Action.INVALIDATE.getValue();
400    /** Post = PO */
401    public static final String DOCACTION_Post = X_Ref__Document_Action.POST.getValue();
402    /** Prepare = PR */
403    public static final String DOCACTION_Prepare = X_Ref__Document_Action.PREPARE.getValue();
404    /** Reverse - Accrual = RA */
405    public static final String DOCACTION_Reverse_Accrual = X_Ref__Document_Action.REVERSE__ACCRUAL.getValue();
406    /** Reverse - Correct = RC */
407    public static final String DOCACTION_Reverse_Correct = X_Ref__Document_Action.REVERSE__CORRECT.getValue();
408    /** Re-activate = RE */
409    public static final String DOCACTION_Re_Activate = X_Ref__Document_Action.RE__ACTIVATE.getValue();
410    /** Reject = RJ */
411    public static final String DOCACTION_Reject = X_Ref__Document_Action.REJECT.getValue();
412    /** Void = VO */
413    public static final String DOCACTION_Void = X_Ref__Document_Action.VOID.getValue();
414    /** Wait Complete = WC */
415    public static final String DOCACTION_WaitComplete = X_Ref__Document_Action.WAIT_COMPLETE.getValue();
416    /** Unlock = XL */
417    public static final String DOCACTION_Unlock = X_Ref__Document_Action.UNLOCK.getValue();
418    /** Is test a valid value.
419    @param test testvalue
420    @return true if valid **/
421    public static boolean isDocActionValid(String test)
422    {
423         return X_Ref__Document_Action.isValid(test);
424         
425    }
426    /** Set Document Action.
427    @param DocAction The targeted status of the document */
428    public void setDocAction (String DocAction)
429    {
430        if (!isDocActionValid(DocAction))
431        throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - -- - AP - CL - CO - IN - PO - PR - RA - RC - RE - RJ - VO - WC - XL");
432        set_Value ("DocAction", DocAction);
433        
434    }
435    
436    /** Get Document Action.
437    @return The targeted status of the document */
438    public String getDocAction() 
439    {
440        return (String)get_Value("DocAction");
441        
442    }
443    
444    /** Set Duration.
445    @param Duration Normal Duration in Duration Unit */
446    public void setDuration (int Duration)
447    {
448        set_Value ("Duration", Integer.valueOf(Duration));
449        
450    }
451    
452    /** Get Duration.
453    @return Normal Duration in Duration Unit */
454    public int getDuration() 
455    {
456        return get_ValueAsInt("Duration");
457        
458    }
459    
460    /** Set Duration Limit.
461    @param DurationLimit Maximum Duration in Duration Unit */
462    public void setDurationLimit (int DurationLimit)
463    {
464        set_Value ("DurationLimit", Integer.valueOf(DurationLimit));
465        
466    }
467    
468    /** Get Duration Limit.
469    @return Maximum Duration in Duration Unit */
470    public int getDurationLimit() 
471    {
472        return get_ValueAsInt("DurationLimit");
473        
474    }
475    
476    /** Set Dynamic Priority Change.
477    @param DynPriorityChange Change of priority when Activity is suspended waiting for user */
478    public void setDynPriorityChange (java.math.BigDecimal DynPriorityChange)
479    {
480        set_Value ("DynPriorityChange", DynPriorityChange);
481        
482    }
483    
484    /** Get Dynamic Priority Change.
485    @return Change of priority when Activity is suspended waiting for user */
486    public java.math.BigDecimal getDynPriorityChange() 
487    {
488        return get_ValueAsBigDecimal("DynPriorityChange");
489        
490    }
491    
492    
493    /** DynPriorityUnit AD_Reference_ID=221 */
494    public static final int DYNPRIORITYUNIT_AD_Reference_ID=221;
495    /** Day = D */
496    public static final String DYNPRIORITYUNIT_Day = X_Ref__Frequency_Type.DAY.getValue();
497    /** Hour = H */
498    public static final String DYNPRIORITYUNIT_Hour = X_Ref__Frequency_Type.HOUR.getValue();
499    /** Minute = M */
500    public static final String DYNPRIORITYUNIT_Minute = X_Ref__Frequency_Type.MINUTE.getValue();
501    /** Is test a valid value.
502    @param test testvalue
503    @return true if valid **/
504    public static boolean isDynPriorityUnitValid(String test)
505    {
506         return X_Ref__Frequency_Type.isValid(test);
507         
508    }
509    /** Set Dynamic Priority Unit.
510    @param DynPriorityUnit Change of priority when Activity is suspended waiting for user */
511    public void setDynPriorityUnit (String DynPriorityUnit)
512    {
513        if (!isDynPriorityUnitValid(DynPriorityUnit))
514        throw new IllegalArgumentException ("DynPriorityUnit Invalid value - " + DynPriorityUnit + " - Reference_ID=221 - D - H - M");
515        set_Value ("DynPriorityUnit", DynPriorityUnit);
516        
517    }
518    
519    /** Get Dynamic Priority Unit.
520    @return Change of priority when Activity is suspended waiting for user */
521    public String getDynPriorityUnit() 
522    {
523        return (String)get_Value("DynPriorityUnit");
524        
525    }
526    
527    /** Set EMail Address.
528    @param EMail Electronic Mail Address */
529    public void setEMail (String EMail)
530    {
531        set_Value ("EMail", EMail);
532        
533    }
534    
535    /** Get EMail Address.
536    @return Electronic Mail Address */
537    public String getEMail() 
538    {
539        return (String)get_Value("EMail");
540        
541    }
542    
543    
544    /** EMailRecipient AD_Reference_ID=363 */
545    public static final int EMAILRECIPIENT_AD_Reference_ID=363;
546    /** Document Business Partner = B */
547    public static final String EMAILRECIPIENT_DocumentBusinessPartner = X_Ref_AD_WF_Node_EMailRecipient.DOCUMENT_BUSINESS_PARTNER.getValue();
548    /** Document Owner = D */
549    public static final String EMAILRECIPIENT_DocumentOwner = X_Ref_AD_WF_Node_EMailRecipient.DOCUMENT_OWNER.getValue();
550    /** WF Responsible = R */
551    public static final String EMAILRECIPIENT_WFResponsible = X_Ref_AD_WF_Node_EMailRecipient.WF_RESPONSIBLE.getValue();
552    /** Is test a valid value.
553    @param test testvalue
554    @return true if valid **/
555    public static boolean isEMailRecipientValid(String test)
556    {
557         return X_Ref_AD_WF_Node_EMailRecipient.isValid(test);
558         
559    }
560    /** Set EMail Recipient.
561    @param EMailRecipient Recipient of the EMail */
562    public void setEMailRecipient (String EMailRecipient)
563    {
564        if (!isEMailRecipientValid(EMailRecipient))
565        throw new IllegalArgumentException ("EMailRecipient Invalid value - " + EMailRecipient + " - Reference_ID=363 - B - D - R");
566        set_Value ("EMailRecipient", EMailRecipient);
567        
568    }
569    
570    /** Get EMail Recipient.
571    @return Recipient of the EMail */
572    public String getEMailRecipient() 
573    {
574        return (String)get_Value("EMailRecipient");
575        
576    }
577    
578    
579    /** EntityType AD_Reference_ID=389 */
580    public static final int ENTITYTYPE_AD_Reference_ID=389;
581    /** Set Entity Type.
582    @param EntityType Dictionary Entity Type;
583     Determines ownership and synchronization */
584    public void setEntityType (String EntityType)
585    {
586        set_Value ("EntityType", EntityType);
587        
588    }
589    
590    /** Get Entity Type.
591    @return Dictionary Entity Type;
592     Determines ownership and synchronization */
593    public String getEntityType() 
594    {
595        return (String)get_Value("EntityType");
596        
597    }
598    
599    
600    /** FinishMode AD_Reference_ID=303 */
601    public static final int FINISHMODE_AD_Reference_ID=303;
602    /** Automatic = A */
603    public static final String FINISHMODE_Automatic = X_Ref_WF_Start_Finish_Mode.AUTOMATIC.getValue();
604    /** Manual = M */
605    public static final String FINISHMODE_Manual = X_Ref_WF_Start_Finish_Mode.MANUAL.getValue();
606    /** Is test a valid value.
607    @param test testvalue
608    @return true if valid **/
609    public static boolean isFinishModeValid(String test)
610    {
611         return X_Ref_WF_Start_Finish_Mode.isValid(test);
612         
613    }
614    /** Set Finish Mode.
615    @param FinishMode Workflow Activity Finish Mode */
616    public void setFinishMode (String FinishMode)
617    {
618        if (!isFinishModeValid(FinishMode))
619        throw new IllegalArgumentException ("FinishMode Invalid value - " + FinishMode + " - Reference_ID=303 - A - M");
620        set_Value ("FinishMode", FinishMode);
621        
622    }
623    
624    /** Get Finish Mode.
625    @return Workflow Activity Finish Mode */
626    public String getFinishMode() 
627    {
628        return (String)get_Value("FinishMode");
629        
630    }
631    
632    /** Set Comment.
633    @param Help Comment, Help or Hint */
634    public void setHelp (String Help)
635    {
636        set_Value ("Help", Help);
637        
638    }
639    
640    /** Get Comment.
641    @return Comment, Help or Hint */
642    public String getHelp() 
643    {
644        return (String)get_Value("Help");
645        
646    }
647    
648    /** Set Centrally maintained.
649    @param IsCentrallyMaintained Information maintained in System Element table */
650    public void setIsCentrallyMaintained (boolean IsCentrallyMaintained)
651    {
652        set_Value ("IsCentrallyMaintained", Boolean.valueOf(IsCentrallyMaintained));
653        
654    }
655    
656    /** Get Centrally maintained.
657    @return Information maintained in System Element table */
658    public boolean isCentrallyMaintained() 
659    {
660        return get_ValueAsBoolean("IsCentrallyMaintained");
661        
662    }
663    
664    
665    /** JoinElement AD_Reference_ID=301 */
666    public static final int JOINELEMENT_AD_Reference_ID=301;
667    /** AND = A */
668    public static final String JOINELEMENT_AND = X_Ref_WF_Join_Split.AND.getValue();
669    /** XOR = X */
670    public static final String JOINELEMENT_XOR = X_Ref_WF_Join_Split.XOR.getValue();
671    /** Is test a valid value.
672    @param test testvalue
673    @return true if valid **/
674    public static boolean isJoinElementValid(String test)
675    {
676         return X_Ref_WF_Join_Split.isValid(test);
677         
678    }
679    /** Set Join Element.
680    @param JoinElement Semantics for multiple incoming Transitions */
681    public void setJoinElement (String JoinElement)
682    {
683        if (JoinElement == null) throw new IllegalArgumentException ("JoinElement is mandatory");
684        if (!isJoinElementValid(JoinElement))
685        throw new IllegalArgumentException ("JoinElement Invalid value - " + JoinElement + " - Reference_ID=301 - A - X");
686        set_Value ("JoinElement", JoinElement);
687        
688    }
689    
690    /** Get Join Element.
691    @return Semantics for multiple incoming Transitions */
692    public String getJoinElement() 
693    {
694        return (String)get_Value("JoinElement");
695        
696    }
697    
698    /** Set Name.
699    @param Name Alphanumeric identifier of the entity */
700    public void setName (String Name)
701    {
702        if (Name == null) throw new IllegalArgumentException ("Name is mandatory.");
703        set_Value ("Name", Name);
704        
705    }
706    
707    /** Get Name.
708    @return Alphanumeric identifier of the entity */
709    public String getName() 
710    {
711        return (String)get_Value("Name");
712        
713    }
714    
715    /** Get Record ID/ColumnName
716    @return ID/ColumnName pair */
717    public KeyNamePair getKeyNamePair() 
718    {
719        return new KeyNamePair(get_ID(), getName());
720        
721    }
722    
723    /** Set Priority.
724    @param Priority Indicates if this request is of a high, medium or low priority. */
725    public void setPriority (int Priority)
726    {
727        set_Value ("Priority", Integer.valueOf(Priority));
728        
729    }
730    
731    /** Get Priority.
732    @return Indicates if this request is of a high, medium or low priority. */
733    public int getPriority() 
734    {
735        return get_ValueAsInt("Priority");
736        
737    }
738    
739    /** Set Mail Template.
740    @param R_MailText_ID Text templates for mailings */
741    public void setR_MailText_ID (int R_MailText_ID)
742    {
743        if (R_MailText_ID <= 0) set_Value ("R_MailText_ID", null);
744        else
745        set_Value ("R_MailText_ID", Integer.valueOf(R_MailText_ID));
746        
747    }
748    
749    /** Get Mail Template.
750    @return Text templates for mailings */
751    public int getR_MailText_ID() 
752    {
753        return get_ValueAsInt("R_MailText_ID");
754        
755    }
756    
757    
758    /** SplitElement AD_Reference_ID=301 */
759    public static final int SPLITELEMENT_AD_Reference_ID=301;
760    /** AND = A */
761    public static final String SPLITELEMENT_AND = X_Ref_WF_Join_Split.AND.getValue();
762    /** XOR = X */
763    public static final String SPLITELEMENT_XOR = X_Ref_WF_Join_Split.XOR.getValue();
764    /** Is test a valid value.
765    @param test testvalue
766    @return true if valid **/
767    public static boolean isSplitElementValid(String test)
768    {
769         return X_Ref_WF_Join_Split.isValid(test);
770         
771    }
772    /** Set Split Element.
773    @param SplitElement Semantics for multiple outgoing Transitions */
774    public void setSplitElement (String SplitElement)
775    {
776        if (SplitElement == null) throw new IllegalArgumentException ("SplitElement is mandatory");
777        if (!isSplitElementValid(SplitElement))
778        throw new IllegalArgumentException ("SplitElement Invalid value - " + SplitElement + " - Reference_ID=301 - A - X");
779        set_Value ("SplitElement", SplitElement);
780        
781    }
782    
783    /** Get Split Element.
784    @return Semantics for multiple outgoing Transitions */
785    public String getSplitElement() 
786    {
787        return (String)get_Value("SplitElement");
788        
789    }
790    
791    
792    /** StartMode AD_Reference_ID=303 */
793    public static final int STARTMODE_AD_Reference_ID=303;
794    /** Automatic = A */
795    public static final String STARTMODE_Automatic = X_Ref_WF_Start_Finish_Mode.AUTOMATIC.getValue();
796    /** Manual = M */
797    public static final String STARTMODE_Manual = X_Ref_WF_Start_Finish_Mode.MANUAL.getValue();
798    /** Is test a valid value.
799    @param test testvalue
800    @return true if valid **/
801    public static boolean isStartModeValid(String test)
802    {
803         return X_Ref_WF_Start_Finish_Mode.isValid(test);
804         
805    }
806    /** Set Start Mode.
807    @param StartMode Workflow Activity Start Mode */
808    public void setStartMode (String StartMode)
809    {
810        if (!isStartModeValid(StartMode))
811        throw new IllegalArgumentException ("StartMode Invalid value - " + StartMode + " - Reference_ID=303 - A - M");
812        set_Value ("StartMode", StartMode);
813        
814    }
815    
816    /** Get Start Mode.
817    @return Workflow Activity Start Mode */
818    public String getStartMode() 
819    {
820        return (String)get_Value("StartMode");
821        
822    }
823    
824    
825    /** SubflowExecution AD_Reference_ID=307 */
826    public static final int SUBFLOWEXECUTION_AD_Reference_ID=307;
827    /** Asynchronously = A */
828    public static final String SUBFLOWEXECUTION_Asynchronously = X_Ref_WF_SubFlow_Execution.ASYNCHRONOUSLY.getValue();
829    /** Synchronously = S */
830    public static final String SUBFLOWEXECUTION_Synchronously = X_Ref_WF_SubFlow_Execution.SYNCHRONOUSLY.getValue();
831    /** Is test a valid value.
832    @param test testvalue
833    @return true if valid **/
834    public static boolean isSubflowExecutionValid(String test)
835    {
836         return X_Ref_WF_SubFlow_Execution.isValid(test);
837         
838    }
839    /** Set Subflow Execution.
840    @param SubflowExecution Mode how the sub-workflow is executed */
841    public void setSubflowExecution (String SubflowExecution)
842    {
843        if (!isSubflowExecutionValid(SubflowExecution))
844        throw new IllegalArgumentException ("SubflowExecution Invalid value - " + SubflowExecution + " - Reference_ID=307 - A - S");
845        set_Value ("SubflowExecution", SubflowExecution);
846        
847    }
848    
849    /** Get Subflow Execution.
850    @return Mode how the sub-workflow is executed */
851    public String getSubflowExecution() 
852    {
853        return (String)get_Value("SubflowExecution");
854        
855    }
856    
857    /** Set Search Key.
858    @param Value Search key for the record in the format required - must be unique */
859    public void setValue (String Value)
860    {
861        if (Value == null) throw new IllegalArgumentException ("Value is mandatory.");
862        set_Value ("Value", Value);
863        
864    }
865    
866    /** Get Search Key.
867    @return Search key for the record in the format required - must be unique */
868    public String getValue() 
869    {
870        return (String)get_Value("Value");
871        
872    }
873    
874    /** Set Wait Time.
875    @param WaitTime Time in minutes to wait (sleep) */
876    public void setWaitTime (int WaitTime)
877    {
878        set_Value ("WaitTime", Integer.valueOf(WaitTime));
879        
880    }
881    
882    /** Get Wait Time.
883    @return Time in minutes to wait (sleep) */
884    public int getWaitTime() 
885    {
886        return get_ValueAsInt("WaitTime");
887        
888    }
889    
890    /** Set Waiting Time.
891    @param WaitingTime Workflow Simulation Waiting time */
892    public void setWaitingTime (int WaitingTime)
893    {
894        set_Value ("WaitingTime", Integer.valueOf(WaitingTime));
895        
896    }
897    
898    /** Get Waiting Time.
899    @return Workflow Simulation Waiting time */
900    public int getWaitingTime() 
901    {
902        return get_ValueAsInt("WaitingTime");
903        
904    }
905    
906    
907    /** Workflow_ID AD_Reference_ID=174 */
908    public static final int WORKFLOW_ID_AD_Reference_ID=174;
909    /** Set Workflow.
910    @param Workflow_ID Workflow or tasks */
911    public void setWorkflow_ID (int Workflow_ID)
912    {
913        if (Workflow_ID <= 0) set_Value ("Workflow_ID", null);
914        else
915        set_Value ("Workflow_ID", Integer.valueOf(Workflow_ID));
916        
917    }
918    
919    /** Get Workflow.
920    @return Workflow or tasks */
921    public int getWorkflow_ID() 
922    {
923        return get_ValueAsInt("Workflow_ID");
924        
925    }
926    
927    /** Set Working Time.
928    @param WorkingTime Workflow Simulation Execution Time */
929    public void setWorkingTime (int WorkingTime)
930    {
931        set_Value ("WorkingTime", Integer.valueOf(WorkingTime));
932        
933    }
934    
935    /** Get Working Time.
936    @return Workflow Simulation Execution Time */
937    public int getWorkingTime() 
938    {
939        return get_ValueAsInt("WorkingTime");
940        
941    }
942    
943    /** Set X Position.
944    @param XPosition Absolute X (horizontal) position in 1/72 of an inch */
945    public void setXPosition (int XPosition)
946    {
947        set_Value ("XPosition", Integer.valueOf(XPosition));
948        
949    }
950    
951    /** Get X Position.
952    @return Absolute X (horizontal) position in 1/72 of an inch */
953    public int getXPosition() 
954    {
955        return get_ValueAsInt("XPosition");
956        
957    }
958    
959    /** Set Y Position.
960    @param YPosition Absolute Y (vertical) position in 1/72 of an inch */
961    public void setYPosition (int YPosition)
962    {
963        set_Value ("YPosition", Integer.valueOf(YPosition));
964        
965    }
966    
967    /** Get Y Position.
968    @return Absolute Y (vertical) position in 1/72 of an inch */
969    public int getYPosition() 
970    {
971        return get_ValueAsInt("YPosition");
972        
973    }
974    
975    
976}