1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod Create ( 
 |    SWF_Workflow owner, 
 |    Key id, 
 |    String name, 
 |    String description, 
 |    Boolean is_default_open, 
 |    Boolean duedate_hasmanual, 
 |    Date duedate, 
 |    Date createdon, 
 |    SWF_User createdby_user, 
 |    SWF_AuthorizationBase assigned_authorization, 
 |    SWF_Step parent, 
 |    String viewlink, 
 |    String viewlinkweb, 
 |    Boolean isnew 
 |  ) as SWF_ActivityBase 
 |  { 
 |    Description: 'Create a new ad-hoc activity with the given id.' 
 |    TextBody: 
 |    [* 
 |      activity := owner.Element( relnew, 
 |                                 SWF_Activity, 
 |                                 ID := id ); 
 |                                  
 |      activity.Update( name, 
 |                       description, 
 |                       is_default_open, 
 |                       duedate_hasmanual, 
 |                       duedate, 
 |                       createdon, 
 |                       createdby_user, 
 |                       assigned_authorization, 
 |                       parent, 
 |                       viewlink, 
 |                       viewlinkweb, 
 |                       isnew ); 
 |       
 |      return activity; 
 |    *] 
 |  } 
 |  
  |