Skip to content

Commit

Permalink
address the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yongbozuo committed Sep 26, 2023
1 parent 2795f9e commit dd9c28c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public with sharing class FireCreateServiceDocumentInvocableAction {

/**
* recordId: recordId to generate service document for. WO/WOLI/SA id
* templateId: Service document template to generate document for. Starts with '0M0'
* templateId: The ID of Service document template to generate document for. The ID starts with '0M0'
* locale: (Optional) Locale to generate the document in. Example valid formats: 'ru', 'ru_PL'
* title: (Optional) Used to name the document saved
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ trigger ServiceDocumentCreation on DocumentRecipient (after insert) {


// Work Order Templates
// can be conbined with the number of signatures, but not able to distinguish between entities
// The if-else branches can be combined by the number of signatures to reduce the number of branches,
// but, in that case, it will not be able to add debug information for each different entity
if (WO_TEMPLATES_WITH_1_SIGNATURES.contains(templateId)) {
System.debug('Work Order Template block');
//only when all the signatures have been collected, then fire the trigger
Expand Down

0 comments on commit dd9c28c

Please sign in to comment.