| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod IsValidInput ( | 
|   output String feedback_o, | 
|   const SWF_StepDefinition stepdefinition, | 
|   const SWF_ActivityDefinitionBase activitydefinition, | 
|   String name, | 
|   String dueoffset | 
| ) const declarative remote as Boolean | 
| { | 
|   Description: 'Validate input for activity definition' | 
|   TextBody: | 
|   [* | 
|     result := true; | 
|      | 
|     if( name = '' ) | 
|     { | 
|       result := false; | 
|       feedback_o := SWF_Translation::TRANSLATE_MustHaveAName( ); | 
|     } | 
|     else if( dueoffset = '' ) | 
|     { | 
|       result := false; | 
|       feedback_o := SWF_Translation::TRANSLATE_IsEmptyDueOffset(); | 
|     } | 
|     else if( exists( stepdefinition, ChildElementDefinition.astype( SWF_ActivityDefinitionBase ), e,  | 
|                      e <> activitydefinition, | 
|                      e.Name() = name ) ) | 
|     { | 
|       result := false; | 
|       feedback_o := SWF_Translation::TRANSLATE_NameAlreadyExists();  | 
|     } | 
|      | 
|     return result; | 
|   *] | 
| } |