Case Authoring
5 nodes
On this page 5
Check Case
FunctionEverything wrong with the case, worst first, one line each.
Signature
CheckCase(crimeCase: CrimeProject) -> Text Array
string[] CheckCase(CrimeProject crimeCase)
Parameters
| name | type | default | description |
|---|---|---|---|
| crimeCase | CrimeProject | — | A case, from CaseAuthoring.OpenCase. |
Returns
| result | Text 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
FunctionWhat the case contains, counted.
Signature
DescribeCase(crimeCase: CrimeProject) -> Case Summary
CaseSummary DescribeCase(CrimeProject crimeCase)
Parameters
| name | type | default | description |
|---|---|---|---|
| crimeCase | CrimeProject | — | A case, from CaseAuthoring.OpenCase. |
Returns
| result | Case Summary |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Case Authoring
- Package
- Crime Engine
Open Case
FunctionOpens a case, from a project folder or from a published pack.
Signature
OpenCase(caseFolderOrPack: Text) -> CrimeProject
CrimeProject OpenCase(string caseFolderOrPack)
Parameters
| name | type | default | description |
|---|---|---|---|
| caseFolderOrPack | Text | — | A project folder, or a .cepack file. |
Returns
| result | CrimeProject |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Case Authoring
- Package
- Crime Engine
Publish Case
FunctionPublishes a case folder as one distributable .cepack file.
Signature
PublishCase(caseFolder: Text, packPath: Text) -> Text
string PublishCase(string caseFolder, string packPath = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| caseFolder | Text | — | The project folder. A pack cannot be published from a pack. |
| packPath | Text | — | Where to write it, or empty to put it beside the folder under the case's own name. |
Returns
| result | Text |
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
FunctionChecks 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
| name | type | default | description |
|---|---|---|---|
| caseFolder | Text | — | The project folder. |
| packPath | Text | — | The pack to check. |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Case Authoring
- Package
- Crime Engine