Divooka Reference

Case Authoring

5 nodes

On this page 5

Check Case

Function

Everything wrong with the case, worst first, one line each.

Signature
CheckCase(crimeCase: CrimeProject) -> Text Array
string[] CheckCase(CrimeProject crimeCase)

Parameters

nametypedefaultdescription
crimeCaseCrimeProject—A case, from CaseAuthoring.OpenCase.

Returns

resultText Array

Remarks

Lines rather than an exception, because a case under construction is normally invalid and a node that threw would make the ordinary state of the work unrepresentable in a graph. An empty list is a case with nothing to say about it.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Case Authoring
Package
Crime Engine

Describe Case

Function

What the case contains, counted.

Signature
DescribeCase(crimeCase: CrimeProject) -> Case Summary
CaseSummary DescribeCase(CrimeProject crimeCase)

Parameters

nametypedefaultdescription
crimeCaseCrimeProject—A case, from CaseAuthoring.OpenCase.

Returns

resultCase Summary
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Case Authoring
Package
Crime Engine

Open Case

Function

Opens a case, from a project folder or from a published pack.

Signature
OpenCase(caseFolderOrPack: Text) -> CrimeProject
CrimeProject OpenCase(string caseFolderOrPack)

Parameters

nametypedefaultdescription
caseFolderOrPackText—A project folder, or a .cepack file.

Returns

resultCrimeProject
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Case Authoring
Package
Crime Engine

Publish Case

Function

Publishes a case folder as one distributable .cepack file.

Signature
PublishCase(caseFolder: Text, packPath: Text) -> Text
string PublishCase(string caseFolder, string packPath = "")

Parameters

nametypedefaultdescription
caseFolderText—The project folder. A pack cannot be published from a pack.
packPathText—Where to write it, or empty to put it beside the folder under the case's own name.

Returns

resultText

Remarks

Refuses a case with errors in it, which is Projects.CasePackPublisher's rule rather than this layer's: a pack that cannot be played is worse than no pack, because it looks like a release.

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Case Authoring
Package
Crime Engine

Verify Pack

Function

Checks a published pack against the folder it came from, and says what differs.

Signature
VerifyPack(caseFolder: Text, packPath: Text) -> Text
string VerifyPack(string caseFolder, string packPath)

Parameters

nametypedefaultdescription
caseFolderText—The project folder.
packPathText—The pack to check.

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Case Authoring
Package
Crime Engine