Table of Contents

Class BPMInstanceVO

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll

Instance of Business Process Management

[AttTable("BPMInstance", 20240302)]
[AttTableProducts(new Products[] { Products.BPM })]
[AttTableFlags(new TableFlags[] { TableFlags.MasterEntity, TableFlags.TableForJorge, TableFlags.NotUseHashTag, TableFlags.FullTextSearchable })]
[AttTableOrderBy(OrderFields = "case when BPMInstance.closed=0 then BPMInstance.dclose else BPMInstance.dopen end,\r\n                               case when BPMInstance.closed=0 then BPMInstance.hclose else BPMInstance.hopen end,\r\n                               BPMInstance.summary,\r\n                               BPMInstance.bpmid", COrderType = "D,D,A,A")]
[AttTableVOInfo(typeof(BPMWorkflowAttInfo))]
public class BPMInstanceVO : BusinessVO, IBaseSerialization, ICloneVO, ICloneable, IChange, IParent, IGenericVO
Inheritance
BPMInstanceVO

Properties

BPMProcessVO

[AttExternalCollection(typeof(BPMProcessVO), new string[] { "[BPMProcess].[ndoc]", "[BPMInstance].[ndoc]" })]
public BPMProcessVO BPMProcessVO { get; }

Property Value

BPMProcessVO

CloseUserVO

Instance of UserVO, Close user

[AttExternalCollection(typeof(UserVO), new string[] { "[US].[usstamp]", "[BPMInstance].[usclose]" })]
public UserVO CloseUserVO { get; }

Property Value

UserVO

EntitiesToSave

[AttVirtualField]
[AttHidden]
public List<GenericVO> EntitiesToSave { get; set; }

Property Value

List<GenericVO>

GetFieldStampName

Use only field name without table name

public override string GetFieldStampName { get; }

Property Value

string

GetStampValue

public override string GetStampValue { get; }

Property Value

string

OpenUserVO

Instance of UserVO, Open user

[AttExternalCollection(typeof(UserVO), new string[] { "[US].[usstamp]", "[BPMInstance].[usopen]" })]
public UserVO OpenUserVO { get; }

Property Value

UserVO

activities

[AttCollection(typeof(BPMActivityVO), new string[] { "[BPMActivity].[bpminstancestamp]", "[BPMInstance].[bpminstancestamp]" })]
public List<BPMActivityVO> activities { get; set; }

Property Value

List<BPMActivityVO>

bpmid

ID

[AttList(Inactive = true)]
[AttLenght(80)]
[AttLogInfo(1)]
public string bpmid { get; set; }

Property Value

string

bpminstancestamp

Unique ID

[AttLenght(25)]
public string bpminstancestamp { get; set; }

Property Value

string

bpmprocessstamp

Connection to BPMProcessVO

[AttForeignKey(typeof(BPMProcessVO))]
[AttLenght(25)]
[AttIndex]
public string bpmprocessstamp { get; set; }

Property Value

string

closed

Close

[AttList]
public bool closed { get; set; }

Property Value

bool

closeusername

Close user name

[AttLenght(60)]
[AttVirtualField(typeof(BPMWorkflowAttInfo))]
public string closeusername { get; set; }

Property Value

string

connections

[AttCollection(typeof(BPMConnectionVO), new string[] { "[BPMConnection].[bpminstancestamp]", "[BPMInstance].[bpminstancestamp]" })]
public List<BPMConnectionVO> connections { get; set; }

Property Value

List<BPMConnectionVO>

dclose

Close date

[AttList(Inactive = true)]
[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime dclose { get; set; }

Property Value

DateTime

documents

[AttVirtualField]
[AttEntityAvailable(typeof(AnexosVO))]
[AttHidden]
public List<AnexosVO> documents { get; set; }

Property Value

List<AnexosVO>

dopen

Open date

[AttList]
[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime dopen { get; set; }

Property Value

DateTime

dstatus

Status date

[AttFieldType(AttFieldType.InputTypes.date)]
public DateTime dstatus { get; set; }

Property Value

DateTime

dtrace

Trace date

[AttFieldType(AttFieldType.InputTypes.date)]
[AttHidden]
public DateTime dtrace { get; set; }

Property Value

DateTime

grupo

Group

[AttLenght(40)]
public string grupo { get; set; }

Property Value

string

hclose

Close time

[AttList(Inactive = true)]
[AttLenght(8)]
[AttFieldType(AttFieldType.InputTypes.time)]
public string hclose { get; set; }

Property Value

string

hopen

Open time

[AttList(Inactive = true)]
[AttLenght(8)]
[AttFieldType(AttFieldType.InputTypes.time)]
public string hopen { get; set; }

Property Value

string

hstatus

Status time

[AttLenght(8)]
[AttFieldType(AttFieldType.InputTypes.time)]
public string hstatus { get; set; }

Property Value

string

identification

Identification

[AttVirtualField]
[AttHidden]
public string identification { get; set; }

Property Value

string

name

Name

[AttLenght(80)]
public string name { get; set; }

Property Value

string

ndoc

Serie

[AttLenght(5)]
[AttDocType(typeof(BPMProcessVO))]
[AttFieldType(new AttFieldType.FieldFlags[] { AttFieldType.FieldFlags.isReadOnly })]
[AttList(Hidden = true)]
public int ndoc { get; set; }

Property Value

int

openusername

Open user name

[AttLenght(60)]
[AttVirtualField(typeof(BPMWorkflowAttInfo))]
public string openusername { get; set; }

Property Value

string

phasetype

Phase type

public BPMPhasesTypes phasetype { get; set; }

Property Value

BPMPhasesTypes

phasetypename

Phase type name

[AttList]
[AttLenght(60)]
[AttLocale(typeof(BPMWorkflowAttInfo), new string[] { "[BPMInstance].[phasetype]" })]
public string phasetypename { get; set; }

Property Value

string

status

Status

[AttList(Inactive = true)]
[AttLenght(40)]
[AttLogInfo(2)]
public string status { get; set; }

Property Value

string

summary

Name

[AttList]
[AttLenght(80)]
[AttLogInfo(0)]
public string summary { get; set; }

Property Value

string

trace

Trace

[AttFieldType(AttFieldType.InputTypes.memo)]
public string trace { get; set; }

Property Value

string

usclose

Connection to UserVO, Close user

[AttForeignKey(typeof(UserVO), HiddenField = false)]
[AttLenght(25)]
public string usclose { get; set; }

Property Value

string

useattachment

Use attachments

public bool useattachment { get; set; }

Property Value

bool

useconnection

Use connections

public bool useconnection { get; set; }

Property Value

bool

usopen

Connection to UserVO, Open user

[AttForeignKey(typeof(UserVO), HiddenField = false)]
[AttLenght(25)]
public string usopen { get; set; }

Property Value

string

variables

[AttCollection(typeof(BPMValueVO), new string[] { "[BPMValue].[ownerstamp]", "[BPMInstance].[bpminstancestamp]" })]
public List<BPMValueVO> variables { get; set; }

Property Value

List<BPMValueVO>

version

Version

[AttLenght(10)]
[AttFieldType(AttFieldType.InputTypes.integer)]
public decimal version { get; set; }

Property Value

decimal

waitstate

Wait state

[AttHidden]
public bool waitstate { get; set; }

Property Value

bool

Methods

AddTraceBuffer(string)

public void AddTraceBuffer(string traceMsg)

Parameters

Nome Tipo Descrição
traceMsg string

AddTraceByBuffer()

public void AddTraceByBuffer()

GetActivity(string)

public BPMActivityVO GetActivity(string uniqueID)

Parameters

Nome Tipo Descrição
uniqueID string

Returns

BPMActivityVO

GetSeriesValue()

public override decimal GetSeriesValue()

Returns

decimal

ResetTraceBuffer()

public void ResetTraceBuffer()

SetStampValue(string)

public override void SetStampValue(string stampID)

Parameters

Nome Tipo Descrição
stampID string