Appearance
BPMN Panel API / Shared Types / MethodRunObject
Type Alias: MethodRunObject
ts
type MethodRunObject = {
parent: string;
method: string;
objects: string[];
params?: unknown;
};Defined in: features/actions/methods/run-method/types.ts:90
Configuration for running a custom backend method via /MetaMethods/Run endpoint.
Used in entity creation to execute custom backend logic instead of standard object/link creation endpoints. When configured in EditorType.runMethod, form field values are automatically merged with pre-configured params.
Examples
Basic Object Creation
typescript
{
parent: "WorkOrder",
method: "CreateWithValidation",
objects: [],
params: {}
}With Pre-configured Parameters
typescript
{
parent: "WFEntityInstance",
method: "createWorkflowInstance",
objects: [],
params: {
workflowType: "production",
autoStart: true
}
}When form has fields name and priority, the final request merges:
- Pre-configured params:
workflowType,autoStart - Form field values:
name,priority
Event-based Object Selection
typescript
{
parent: "WFEntityInstance",
method: "getWorkFlowGraphState",
objects: [],
params: {
getSelectedObjectForEventId: "workorder--on-object-select--link-table"
}
}The selected object's GUID will be retrieved using the event ID, enabling context-aware object creation across panels.
Link Creation with Custom Method
typescript
{
parent: "ProductSupplier",
method: "CreateLinkWithBusinessRules",
objects: ["product-guid", "supplier-guid"],
params: {
sourceGuid: "product-guid",
targetGuid: "supplier-guid",
linkName: "ProductSupplier"
}
}Pre-configured objects are merged with resolved source/target GUIDs.
Properties
| Property | Type | Description |
|---|---|---|
| Parent object or class name on the backend. Identifies the context in which the method should be executed. Examples ts ts ts | |
| Method name to execute on the backend. The backend method receives the Examples ts ts ts | |
| Array of object GUIDs to pass to the method. For object creation, typically an empty array or pre-configured GUIDs. For link creation, automatically includes source and target GUIDs, merged with any pre-configured values (deduplicated). Examples Empty for standalone object creation Pre-configured context object Resolved at runtime for links | |
| Pre-configured parameters to merge with form field values. When the form is submitted:
Common use cases:
Example typescript |