// This file is generated as an Apex representation of the
//     corresponding sObject and its fields.
// This read-only file is used by the Apex Language Server to
//     provide code smartness, and is deleted each time you
//     refresh your sObject definitions.
// To edit your sObjects and their fields, edit the corresponding
//     .object-meta.xml and .field-meta.xml files.

global class ProcessInstance {
    global Id Id;
    global ProcessDefinition ProcessDefinition;
    global Id ProcessDefinitionId;
    global SObject TargetObject;
    global Id TargetObjectId;
    global String Status;
    global Datetime CompletedDate;
    global User LastActor;
    global Id LastActorId;
    global Double ElapsedTimeInDays;
    global Double ElapsedTimeInHours;
    global Double ElapsedTimeInMinutes;
    global User SubmittedBy;
    global Id SubmittedById;
    global Boolean IsDeleted;
    global Datetime CreatedDate;
    global User CreatedBy;
    global Id CreatedById;
    global Datetime LastModifiedDate;
    global User LastModifiedBy;
    global Id LastModifiedById;
    global Datetime SystemModstamp;
    global List<ProcessInstanceHistory> StepsAndWorkitems;
    global List<ProcessInstanceNode> Nodes;
    global List<ProcessInstanceStep> Steps;
    global List<ProcessInstanceWorkitem> Workitems;
    global List<FlowRecordRelation> RelatedRecord;

    global ProcessInstance () 
    {
    }
}