@aurahelper/languages
Version:
Language Libraries to work with XML, Aura, Apex... files. tokenizers, parsers, system classes and much more
599 lines • 17.8 kB
JSON
{
"id": "EventBus.triggercontext",
"nodeType": "class",
"name": "TriggerContext",
"namespace": "EventBus",
"startToken": {
"type": "declaration.entity.name.class",
"text": "TriggerContext",
"textToLower": "triggercontext",
"isAux": false,
"range": {
"start": {
"line": -1,
"character": 0
},
"end": {
"line": -1,
"character": 0
},
"isEmpty": true,
"isSingleLine": true
},
"id": "declaration.entity.name.class_TriggerContext_-1:0"
},
"order": 0,
"memberOrder": 0,
"accessModifier": {
"type": "keyword.modifier.access",
"text": "global",
"textToLower": "global",
"isAux": false,
"range": {
"start": {
"line": -1,
"character": 0
},
"end": {
"line": -1,
"character": 0
},
"isEmpty": true,
"isSingleLine": true
},
"id": "keyword.modifier.access_global_-1:0"
},
"sharingModifier": {
"type": "keyword.modifier.sharing",
"text": "without sharing",
"textToLower": "without sharing",
"isAux": false,
"range": {
"start": {
"line": -1,
"character": 0
},
"end": {
"line": -1,
"character": 0
},
"isEmpty": true,
"isSingleLine": true
},
"id": "keyword.modifier.sharing_without sharing_-1:0"
},
"description": "Provides information about the platform event or change event trigger that’s currently executing, such as how many times the trigger was retried due to the EventBus.RetryableException. Also, provides a method to resume trigger executions.",
"documentation": "https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_eventbus_TriggerContext.htm",
"classes": {},
"interfaces": {},
"enums": {},
"variables": {
"lasterror": {
"id": "EventBus.triggercontext.method.string lasterror{get;}",
"nodeType": "property",
"name": "lastError",
"startToken": {
"type": "declaration.entity.name.property",
"text": "lastError",
"textToLower": "lasterror",
"isAux": false,
"range": {
"start": {
"line": -1,
"character": 0
},
"end": {
"line": -1,
"character": 0
},
"isEmpty": true,
"isSingleLine": true
},
"id": "declaration.entity.name.property_lastError_-1:0"
},
"parentId": "EventBus.triggercontext",
"order": 1,
"memberOrder": 1,
"accessModifier": {
"type": "keyword.modifier.access",
"text": "public",
"textToLower": "public",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 6
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_public_0:0"
},
"signature": "public String lastError { get; }",
"simplifiedSignature": "String lastError{get;}",
"datatype": {
"id": ".datatype.String",
"nodeType": "datatype",
"name": "String",
"startToken": {
"type": "datatype.primitive",
"text": "String",
"textToLower": "string",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 7
},
"end": {
"line": 0,
"character": 13
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_String_0:7"
},
"parentId": "",
"order": 0,
"memberOrder": 0,
"type": "String"
},
"parentName": "TriggerContext",
"getter": {
"id": ".getter.get",
"nodeType": "getter",
"name": "get",
"parentId": "",
"order": 0,
"memberOrder": 0,
"variables": {},
"queries": []
}
},
"retries": {
"id": "EventBus.triggercontext.method.integer retries{get;}",
"nodeType": "property",
"name": "retries",
"startToken": {
"type": "declaration.entity.name.property",
"text": "retries",
"textToLower": "retries",
"isAux": false,
"range": {
"start": {
"line": -1,
"character": 0
},
"end": {
"line": -1,
"character": 0
},
"isEmpty": true,
"isSingleLine": true
},
"id": "declaration.entity.name.property_retries_-1:0"
},
"parentId": "EventBus.triggercontext",
"order": 2,
"memberOrder": 2,
"accessModifier": {
"type": "keyword.modifier.access",
"text": "public",
"textToLower": "public",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 6
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_public_0:0"
},
"signature": "public Integer retries { get; }",
"simplifiedSignature": "Integer retries{get;}",
"datatype": {
"id": ".datatype.Integer",
"nodeType": "datatype",
"name": "Integer",
"startToken": {
"type": "datatype.primitive",
"text": "Integer",
"textToLower": "integer",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 7
},
"end": {
"line": 0,
"character": 14
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_Integer_0:7"
},
"parentId": "",
"order": 0,
"memberOrder": 0,
"type": "Integer"
},
"parentName": "TriggerContext",
"getter": {
"id": ".getter.get",
"nodeType": "getter",
"name": "get",
"parentId": "",
"order": 0,
"memberOrder": 0,
"variables": {},
"queries": []
}
}
},
"methods": {
"currentcontext()": {
"id": "EventBus.triggercontext.method.currentcontext()",
"nodeType": "method",
"name": "currentContext",
"startToken": {
"type": "declaration.entity.name.function",
"text": "currentContext",
"textToLower": "currentcontext",
"isAux": false,
"range": {
"start": {
"line": -1,
"character": 0
},
"end": {
"line": -1,
"character": 0
},
"isEmpty": true,
"isSingleLine": true
},
"id": "declaration.entity.name.function_currentContext_-1:0"
},
"parentId": "EventBus.triggercontext",
"order": 1,
"memberOrder": 3,
"accessModifier": {
"type": "keyword.modifier.access",
"text": "public",
"textToLower": "public",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 6
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_public_0:0"
},
"static": {
"type": "keyword.modifier.static",
"text": "static",
"textToLower": "static",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 7
},
"end": {
"line": 0,
"character": 13
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_static_0:7"
},
"signature": "public static eventbus.TriggerContext currentContext()",
"overrideSignature": "public static override eventbus.TriggerContext currentContext()",
"simplifiedSignature": "currentContext()",
"datatype": {
"id": "EventBus.triggercontext.currentcontext.datatype.eventbus.TriggerContext",
"nodeType": "datatype",
"name": "eventbus.TriggerContext",
"startToken": {
"type": "datatype.support.namespace",
"text": "eventbus",
"textToLower": "eventbus",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 14
},
"end": {
"line": 0,
"character": 22
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_eventbus_0:14"
},
"parentId": "EventBus.triggercontext.currentcontext",
"order": 0,
"memberOrder": 0,
"type": "eventbus.TriggerContext"
},
"description": "Returns an instance of the EventBus.TriggerContext class containing information about the currently executing trigger.",
"parentName": "TriggerContext",
"variables": {},
"params": {},
"queries": [],
"exceptions": []
},
"getresumecheckpoint()": {
"id": "EventBus.triggercontext.method.getresumecheckpoint()",
"nodeType": "method",
"name": "getResumeCheckpoint",
"startToken": {
"type": "declaration.entity.name.function",
"text": "getResumeCheckpoint",
"textToLower": "getresumecheckpoint",
"isAux": false,
"range": {
"start": {
"line": -1,
"character": 0
},
"end": {
"line": -1,
"character": 0
},
"isEmpty": true,
"isSingleLine": true
},
"id": "declaration.entity.name.function_getResumeCheckpoint_-1:0"
},
"parentId": "EventBus.triggercontext",
"order": 2,
"memberOrder": 4,
"accessModifier": {
"type": "keyword.modifier.access",
"text": "public",
"textToLower": "public",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 6
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_public_0:0"
},
"signature": "public String getResumeCheckpoint()",
"overrideSignature": "public override String getResumeCheckpoint()",
"simplifiedSignature": "getResumeCheckpoint()",
"datatype": {
"id": "EventBus.triggercontext.getresumecheckpoint.datatype.String",
"nodeType": "datatype",
"name": "String",
"startToken": {
"type": "datatype.primitive",
"text": "String",
"textToLower": "string",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 7
},
"end": {
"line": 0,
"character": 13
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_String_0:7"
},
"parentId": "EventBus.triggercontext.getresumecheckpoint",
"order": 0,
"memberOrder": 0,
"type": "String"
},
"description": "Returns the replay ID that was set by setResumeCheckpoint(). The returned value is the replay ID of the event message after which trigger processing resumes in a new trigger invocation.",
"parentName": "TriggerContext",
"variables": {},
"params": {},
"queries": [],
"exceptions": []
},
"setresumecheckpoint(string)": {
"id": "EventBus.triggercontext.method.setresumecheckpoint(string)",
"nodeType": "method",
"name": "setResumeCheckpoint",
"startToken": {
"type": "declaration.entity.name.function",
"text": "setResumeCheckpoint",
"textToLower": "setresumecheckpoint",
"isAux": false,
"range": {
"start": {
"line": -1,
"character": 0
},
"end": {
"line": -1,
"character": 0
},
"isEmpty": true,
"isSingleLine": true
},
"id": "declaration.entity.name.function_setResumeCheckpoint_-1:0"
},
"parentId": "EventBus.triggercontext",
"order": 3,
"memberOrder": 5,
"accessModifier": {
"type": "keyword.modifier.access",
"text": "public",
"textToLower": "public",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 6
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_public_0:0"
},
"signature": "public void setResumeCheckpoint(String resumeReplayId)",
"overrideSignature": "public override void setResumeCheckpoint(String resumeReplayId)",
"simplifiedSignature": "setResumeCheckpoint(String)",
"datatype": {
"id": "EventBus.triggercontext.setresumecheckpoint.datatype.void",
"nodeType": "datatype",
"name": "void",
"startToken": {
"type": "datatype.primitive",
"text": "void",
"textToLower": "void",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 7
},
"end": {
"line": 0,
"character": 11
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_void_0:7"
},
"parentId": "EventBus.triggercontext.setresumecheckpoint",
"order": 0,
"memberOrder": 0,
"type": "void"
},
"description": "Sets a checkpoint in the event stream where the platform event trigger resumes execution in a new invocation. Use this method to recover from limit and uncaught exceptions, or to control the number of events processed in one trigger execution. When calling this method, pass in the replay ID of the last successfully processed event message. When the trigger stops execution before all events in Trigger.New are processed, either because of an uncaught exception or intentionally, the trigger is invoked again. The new execution starts with the event message in the stream after the one with the checkpointed Replay ID.",
"parentName": "TriggerContext",
"variables": {},
"params": {
"resumereplayid": {
"id": "EventBus.triggercontext.method.setresumecheckpoint(string).varParam.resumereplayid",
"nodeType": "variable",
"name": "resumeReplayId",
"startToken": {
"type": "declaration.entity.name.variable",
"text": "resumeReplayId",
"textToLower": "resumereplayid",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 39
},
"end": {
"line": 0,
"character": 53
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_resumeReplayId_0:39"
},
"endToken": {
"type": "declaration.entity.name.variable",
"text": "resumeReplayId",
"textToLower": "resumereplayid",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 39
},
"end": {
"line": 0,
"character": 53
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_resumeReplayId_0:39"
},
"parentId": "EventBus.triggercontext.method.setresumecheckpoint(string)",
"order": 1,
"memberOrder": 1,
"datatype": {
"id": "EventBus.triggercontext.setresumecheckpoint.datatype.String",
"nodeType": "datatype",
"name": "String",
"startToken": {
"type": "datatype.primitive",
"text": "String",
"textToLower": "string",
"isAux": false,
"range": {
"start": {
"line": 0,
"character": 32
},
"end": {
"line": 0,
"character": 38
},
"isEmpty": false,
"isSingleLine": true
},
"id": "token.type.identifier_String_0:32"
},
"parentId": "EventBus.triggercontext.setresumecheckpoint",
"order": 0,
"memberOrder": 0,
"type": "String"
},
"description": "The replay ID of the last successfully processed platform event message, after which to resume processing in a new trigger execution context.",
"scope": null
}
},
"queries": [],
"exceptions": []
}
},
"constructors": {},
"extendsType": "",
"implementTypes": [],
"implements": {},
"totalMembers": 5,
"queries": []
}