This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?

Demo.DICOM.Process.RouterDispatcher

persistent class Demo.DICOM.Process.RouterDispatcher extends EnsLib.DICOM.Process

SQL Table Name: Demo_DICOM_Process.RouterDispatcher

Property Inventory

Method Inventory

Parameters

parameter SETTINGS = FilerConfigNames;
This parameter lists the (comma seperated ) names of the RouterFiler business processes

Properties

property Abort as %Boolean [ InitialExpression = 0 ];
This property records whether the filers returned an errored message, in which case we should send an Abort back to the modality
Property methods: AbortAssociation(), AbortDisplayToLogical(), AbortGet(), AbortGetStored(), AbortIsValid(), AbortLogicalToDisplay(), AbortNormalize(), AbortSet()
property ActiveFilers as list of %String;
This is a list of router filer processes which we have sent documents to and have not yet received a response from
Property methods: ActiveFilersBuildValueArray(), ActiveFilersCollectionToDisplay(), ActiveFilersCollectionToOdbc(), ActiveFilersDisplayToCollection(), ActiveFilersDisplayToLogical(), ActiveFilersGet(), ActiveFilersGetObject(), ActiveFilersGetObjectId(), ActiveFilersGetStored(), ActiveFilersGetSwizzled(), ActiveFilersIsValid(), ActiveFilersLogicalToDisplay(), ActiveFilersLogicalToOdbc(), ActiveFilersNormalize(), ActiveFilersOdbcToCollection(), ActiveFilersSet(), ActiveFilersSetObject(), ActiveFilersSetObjectId()
property ErrorComment as %String (MAXLEN = 64, TRUNCATE = 1);
This property stores ErrorComment returned in the C-STORE-RSP from the filers so that we can send the same ErrorComment to the modality
Property methods: ErrorCommentDisplayToLogical(), ErrorCommentGet(), ErrorCommentGetStored(), ErrorCommentIsValid(), ErrorCommentLogicalToDisplay(), ErrorCommentLogicalToOdbc(), ErrorCommentNormalize(), ErrorCommentSet()
property FilerConfigNames;
This is the list of configuration names of the router filer process(es)
Property methods: FilerConfigNamesDisplayToLogical(), FilerConfigNamesGet(), FilerConfigNamesGetStored(), FilerConfigNamesIsValid(), FilerConfigNamesLogicalToDisplay(), FilerConfigNamesLogicalToOdbc(), FilerConfigNamesNormalize(), FilerConfigNamesSet()
property ResponseStatus as %String [ InitialExpression = 0 ];
This property stores the Status returned in C-STORE-RSP from the filers so that we can send the same Status to the modality
Property methods: ResponseStatusDisplayToLogical(), ResponseStatusGet(), ResponseStatusGetStored(), ResponseStatusIsValid(), ResponseStatusLogicalToDisplay(), ResponseStatusLogicalToOdbc(), ResponseStatusNormalize(), ResponseStatusSet()

Methods

method CreateStorageResponse(pDocIn As EnsLib.DICOM.Document, Output pDocOut As EnsLib.DICOM.Document, pStatus As %String = 0, pComment As %String = "") as %Status
Create a storage response DICOM message
classmethod OnGetConnections(Output pArray As %String, pItem As Ens.Config.Item)
Return an array of connections for drawing lines on the config diagram
method OnMessage(pSourceConfigName As %String, pInput As %Library.Persistent) as %Status
Messages received here are instances of EnsLib.DICOM.Document sent to this process by the service or operation config items. In this demo, the process is ever in one of two states, the Operation is connected or not.
method OnResponse(request As Ens.Request, ByRef response As Ens.Response, callrequest As Ens.Request, callresponse As Ens.Response, pCompletionKey As %String) as %Status
Handle a 'Response'

Inherited Members

Inherited Properties

Inherited Methods

Storage

Gray indicates storage defined by superclasses.

Storage Model: CacheStorage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID,"pending",n)
=
%MasterPendingResponses(n)

Storage Model: CacheStorage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID,"received",n)
=
%MessagesReceived(n)

Storage Model: CacheStorage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID,"sent",n)
=
%MessagesSent(n)

Storage Model: CacheStorage (Ens.BusinessProcess)

^Ens.BusinessProcessD(ID)
=
%%CLASSNAME
%ConfigQueueName
%IsCompleted
%MasterPendingResponsesOld
%PrimaryRequestHeader
%PrimaryResponseHeader
%RepliedStatus
%responseId
Adapter
%SessionId
%TimeCompleted
%TimeCreated
%ConfigName
%QuitTask
AlertOnError
%responseClassName
%IsTimerInterrupted
%IsTerminated
%StatusCode
%MessagesReceivedOld
%MessagesSentOld
ReplyCodeActions
RetryInterval
AlertRetryGracePeriod
FailureTimeout
Retry
SuspendMessage
QueueCountAlert
QueueWaitAlert
InactivityTimeout
BusinessPartner
AlertGroups
%SuperSession

Storage Model: CacheStorage (EnsLib.PrivateSession.Process)

^Ens.BusinessProcessD(ID,"Process")
=
ServiceDuplexName
%IsInPrivateSession

Storage Model: CacheStorage (Demo.DICOM.Process.RouterDispatcher)

^Ens.BusinessProcessD(ID,"RouterDispatcher")
=
FilerConfigNames
ActiveFilers
ResponseStatus
ErrorComment
Abort
Feedback