Skip to content

Commit e783ec7

Browse files
committed
docs(automation): use P` template for CEL predicates in examples
1 parent 4f6025c commit e783ec7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

skills/objectstack-automation/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export const OpportunityDiscountApproval = ApprovalProcess.create({
236236
description: 'High-value opportunities (> 100k) require manager + director sign-off.',
237237

238238
// Auto-submit + record locking — Phase B autopilot
239-
entryCriteria: 'record.amount > 100000', // CEL predicate
239+
entryCriteria: P`record.amount > 100000`, // CEL predicate
240240
lockRecord: true,
241241
approvalStatusField: 'approval_status', // mirrors pending|approved|rejected|recalled
242242

@@ -325,7 +325,7 @@ director sign-off for amounts > 500k):
325325
```typescript
326326
{
327327
name: 'director_signoff',
328-
entryCriteria: 'record.amount > 500000',
328+
entryCriteria: P`record.amount > 500000`,
329329
approvers: [{ type: 'role', value: 'sales_director' }],
330330
behavior: 'first_response',
331331
rejectionBehavior: 'back_to_previous',

0 commit comments

Comments
 (0)