Skip to content
Snippets Groups Projects
Commit d846262d authored by S.Listl's avatar S.Listl
Browse files

More usages of workflow signals added

parent 36093da3
No related branches found
No related tags found
No related merge requests found
Showing
with 76 additions and 6 deletions
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="s.listl" id="75b28058-b945-4a42-9f5b-7374df1cacde">
<addColumn tableName="WORKFLOWSIGNAL">
<column name="VARIABLES" type="VARCHAR(512)"/>
</addColumn>
</changeSet>
</databaseChangeLog>
......@@ -8,4 +8,5 @@
<include relativeToChangelogFile="true" file="changeType_SALESORDER_PAID_UNPAID.xml"/>
<include relativeToChangelogFile="true" file="changeType_SALESORDER_PAID_UNPAID.xml"/>
<include relativeToChangelogFile="true" file="delete_leadImportKeywords.xml"/>
<include relativeToChangelogFile="true" file="add_WorkflowSignal_variables.xml"/>
</databaseChangeLog>
......@@ -13947,6 +13947,20 @@
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>VARIABLES</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="512" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
......
......@@ -604,6 +604,7 @@
<conditionProcess>%aditoprj%/entity/Activity_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<orderClauseProcess>%aditoprj%/entity/Activity_entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess>
<onDBInsert>%aditoprj%/entity/Activity_entity/recordcontainers/db/onDBInsert.js</onDBInsert>
<onDBUpdate>%aditoprj%/entity/Activity_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate>
<onDBDelete>%aditoprj%/entity/Activity_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
<linkInformation>
<linkInformation>
......
import("Workflow_lib");
import("Context_lib");
import("system.vars");
import("Sql_lib");
......@@ -7,4 +8,5 @@ newWhere("ACTIVITYLINK.ACTIVITY_ID", "$field.ACTIVITYID").deleteData();
new AttributeRelationQuery(vars.get("$field.ACTIVITYID"), null, ContextUtils.getCurrentContextId())
.deleteAllAttributes();
\ No newline at end of file
WorkflowSignalSender.deleted();
\ No newline at end of file
import("Workflow_lib");
import("Sql_lib");
import("KeywordRegistry_basic");
import("Document_lib");
......@@ -41,4 +42,6 @@ if (vars.exists("$param.InsertLinks_param") && vars.get("$param.InsertLinks_para
{
ActivityUtils.insertLink(activityId, objectType, rowId);
});
}
\ No newline at end of file
}
WorkflowSignalSender.inserted();
\ No newline at end of file
import("Workflow_lib");
WorkflowSignalSender.updated();
\ No newline at end of file
......@@ -149,6 +149,9 @@
<fromClauseProcess>%aditoprj%/entity/BulkMailRecipient_entity/recordcontainers/db/fromClauseProcess.js</fromClauseProcess>
<conditionProcess>%aditoprj%/entity/BulkMailRecipient_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<orderClauseProcess>%aditoprj%/entity/BulkMailRecipient_entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess>
<onDBInsert>%aditoprj%/entity/BulkMailRecipient_entity/recordcontainers/db/onDBInsert.js</onDBInsert>
<onDBUpdate>%aditoprj%/entity/BulkMailRecipient_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate>
<onDBDelete>%aditoprj%/entity/BulkMailRecipient_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
<linkInformation>
<linkInformation>
<name>b8fa2cab-18d8-4297-adc3-191d21f60c3a</name>
......
import("Workflow_lib");
WorkflowSignalSender.deleted();
\ No newline at end of file
import("Workflow_lib");
WorkflowSignalSender.inserted();
\ No newline at end of file
import("Workflow_lib");
WorkflowSignalSender.updated();
\ No newline at end of file
import("Workflow_lib");
import("system.vars");
import("Binary_lib");
import("Sql_lib");
newWhere("BULKMAILRECIPIENT.BULKMAIL_ID", "$local.uid").deleteData();
SingleBinaryUtils.remove("BULKMAIL", "DOCUMENT", vars.get("$local.uid"));
\ No newline at end of file
SingleBinaryUtils.remove("BULKMAIL", "DOCUMENT", vars.get("$local.uid"));
WorkflowSignalSender.deleted();
\ No newline at end of file
import("Workflow_lib");
import("Binary_lib");
import("Sql_lib");
import("DocumentTemplate_lib");
......@@ -49,4 +50,6 @@ if (vars.getString("$param.PresetRecipients_param"))
contactIds = contactIds.concat(JSON.parse(vars.getString("$param.PresetRecipients_param")));
if (contactIds && contactIds.length > 0)
BulkMailUtils.addRecipients(bulkMailId, BulkMailUtils.filterNewRecipients(bulkMailId, contactIds));
\ No newline at end of file
BulkMailUtils.addRecipients(bulkMailId, BulkMailUtils.filterNewRecipients(bulkMailId, contactIds));
WorkflowSignalSender.inserted();
\ No newline at end of file
import("Workflow_lib");
import("system.util");
import("Binary_lib");
import("system.neon");
......@@ -31,4 +32,6 @@ if (template && template.content && BulkMailUtils.isValidTemplateType(template.t
SingleBinaryUtils.set("BULKMAIL", "DOCUMENT", vars.get("$local.uid"), template.content, template.filename);
neon.refresh(["$field.content"]);
}
\ No newline at end of file
}
WorkflowSignalSender.updated();
\ No newline at end of file
......@@ -422,6 +422,9 @@
<alias>Data_alias</alias>
<conditionProcess>%aditoprj%/entity/CampaignStep_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<orderClauseProcess>%aditoprj%/entity/CampaignStep_entity/recordcontainers/db/orderClauseProcess.js</orderClauseProcess>
<onDBInsert>%aditoprj%/entity/CampaignStep_entity/recordcontainers/db/onDBInsert.js</onDBInsert>
<onDBUpdate>%aditoprj%/entity/CampaignStep_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate>
<onDBDelete>%aditoprj%/entity/CampaignStep_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
<linkInformation>
<linkInformation>
<name>b039db2c-3988-42a0-9257-9689b1eb4e58</name>
......
import("Workflow_lib");
WorkflowSignalSender.deleted();
\ No newline at end of file
import("Workflow_lib");
WorkflowSignalSender.inserted();
\ No newline at end of file
import("Workflow_lib");
WorkflowSignalSender.updated();
\ No newline at end of file
......@@ -524,6 +524,7 @@
<alias>Data_alias</alias>
<conditionProcess>%aditoprj%/entity/Campaign_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<onDBInsert>%aditoprj%/entity/Campaign_entity/recordcontainers/db/onDBInsert.js</onDBInsert>
<onDBUpdate>%aditoprj%/entity/Campaign_entity/recordcontainers/db/onDBUpdate.js</onDBUpdate>
<onDBDelete>%aditoprj%/entity/Campaign_entity/recordcontainers/db/onDBDelete.js</onDBDelete>
<linkInformation>
<linkInformation>
......
import("Workflow_lib");
import("Context_lib");
import("system.db");
import("system.vars");
......@@ -24,4 +25,6 @@ if (currentId)
}
new AttributeRelationQuery(currentId, null, ContextUtils.getCurrentContextId())
.deleteAllAttributes();
\ No newline at end of file
.deleteAllAttributes();
WorkflowSignalSender.deleted();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment