admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
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
Quintiq file version 2.0
#parent: #root
StaticMethod Create (
  SWF_Workflow owner,
  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.'
  TextBody:
  [*
    id := owner.WorkflowDefinition().Dataset().GetNewGlobalID();
    
    activity := SWF_Activity::Create( owner,
                                      id,
                                      name,
                                      description,
                                      is_default_open,
                                      duedate_hasmanual,
                                      duedate,
                                      createdon,
                                      createdby_user,
                                      assigned_authorization,
                                      parent,
                                      viewlink,
                                      viewlinkweb,
                                      isnew );                                 
    
    return activity;
  *]
}