Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ public String resourceType() {
public String resourceIndexName() {
return WORKFLOW_STATE_INDEX;
}

// Workflow state documents are companion resources of the workflow
// (template) they track: access is inherited from the parent
// workflow's sharing record. This also covers state documents
// written without an authenticated user in the thread context
// (e.g. during provisioning steps executed under system context).
@Override
public String parentType() {
return CommonValue.WORKFLOW_RESOURCE_TYPE;
}

@Override
public String parentIdField() {
return CommonValue.WORKFLOW_ID_FIELD;
}
});
}

Expand Down
Loading