-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathcompsetactualdates.dbc
More file actions
executable file
·53 lines (51 loc) · 2.71 KB
/
compsetactualdates.dbc
File metadata and controls
executable file
·53 lines (51 loc) · 2.71 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script SYSTEM "script.dtd">
<script author="" scriptname="script_compsetactualdates">
<description>SCRIPT</description>
<statements>
<freeform description="AUTOSCRIPT">
<sql target="all">delete from autoscript where autoscript = 'COMPSETACTUALDATES'</sql>
</freeform>
<insert table="AUTOSCRIPT" ignore_duplicates="true">
<insertrow>
<columnvalue column="AUTOSCRIPT" string="COMPSETACTUALDATES" />
<columnvalue column="STATUS" string="Draft" />
<columnvalue column="SOURCE" string="if status=='COMP':
 mbo.setValue("ActStart", mbo.getDate("SchedStart") )
 mbo.setValue("ActFinish", mbo.getDate("SchedFinish") )" />
<columnvalue column="CREATEDDATE" date="sysdate" />
<columnvalue column="STATUSDATE" date="sysdate" />
<columnvalue column="CHANGEDATE" date="sysdate" />
<columnvalue column="OWNER" string="MAXADMIN" />
<columnvalue column="CREATEDBY" string="MAXADMIN" />
<columnvalue column="CHANGEBY" string="MAXADMIN" />
<columnvalue column="HASLD" boolean="false" />
<columnvalue column="LANGCODE" string="EN" />
<columnvalue column="SCRIPTLANGUAGE" string="python" />
<columnvalue column="USERDEFINED" boolean="true" />
<columnvalue column="LOGLEVEL" string="ERROR" />
<columnvalue column="INTERFACE" boolean="false" />
<columnvalue column="ACTIVE" boolean="true" />
</insertrow>
</insert>
<freeform description="AUTOSCRIPTVARS">
<sql target="all">delete from autoscriptvars where autoscript = 'COMPSETACTUALDATES'</sql>
</freeform>
<freeform description="SCRIPTLAUNCHPOINT">
<sql target="all">delete from scriptlaunchpoint where autoscript = 'COMPSETACTUALDATES'</sql>
</freeform>
<insert table="SCRIPTLAUNCHPOINT" ignore_duplicates="true">
<insertrow>
<columnvalue column="LAUNCHPOINTNAME" string="COMPSETACTUALDATES" />
<columnvalue column="AUTOSCRIPT" string="COMPSETACTUALDATES" />
<columnvalue column="DESCRIPTION" string="Sample for schedule dates" />
<columnvalue column="LAUNCHPOINTTYPE" string="ATTRIBUTE" />
<columnvalue column="OBJECTNAME" string="WORKORDER" />
<columnvalue column="OBJECTEVENT" number="0" />
<columnvalue column="ATTRIBUTENAME" string="STATUS" />
<columnvalue column="ACTIVE" boolean="true" />
</insertrow>
</insert>
<freeform description="LAUNCHPOINTVARS">
<sql target="all">delete from launchpointvars where autoscript = 'COMPSETACTUALDATES'</sql>
</freeform>
</statements>
</script>