yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Quintiq file version 2.0
#parent: #root
StaticMethod Create (
  SWF_Workflow owner,
  Key id,
  Boolean iscompleted,
  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,
  Boolean is_active_external,
  Boolean is_completion_depends_on_external,
  String primary_external_link_id,
  String secondary_external_link_id,
  String external_system_name,
  String primary_external_information,
  String secondary_external_information,
  String external_type,
  String updatedby,
  String viewlink,
  String viewlinkweb
) as SWF_ActivityBase
{
  Description: 'Create a new ad-hoc activity with the given id.'
  TextBody:
  [*
    activity := owner.Element( relnew,
                               SWF_ActivityExternal,
                               AsWorkflowForActivityExternal := owner,
                               WorkflowID := owner.ID(),
                               ID := id,
                               PrimaryExternalLinkID := primary_external_link_id,
                               SecondaryExternalLinkID := secondary_external_link_id,
                               ExternalSystemName := external_system_name );
                               
    activity.Update( iscompleted,
                     name,
                     description,
                     is_default_open,
                     duedate_hasmanual,
                     duedate,
                     createdon,
                     createdby_user,
                     assigned_authorization,
                     parent,
                     is_active_external,
                     is_completion_depends_on_external,
                     primary_external_information,
                     secondary_external_information,
                     external_type,
                     updatedby,
                     viewlink,
                     viewlinkweb );
    
    return activity;
  *]
}