GEODI DCC Reference

GEODI DCC Reference

GEODI has its command language in *.DCC files. DCC commands may start/end a discovery, start a repair, etc. These files can be run with a double click or used in GEODI Workflows.

 


DCC Referansı

The following link lists all DCC commands in your environment. You should change the GEODI URL.

https://servis2.dece.com.tr//GUI/DeceSystemInfoWebHandler?op=ObjectInfo&Name=GEODI.TestHelper.DCCCommandExecuter, GEODI

 

 

Details

You can Pause and Continue Discovery for all or specific WorkSpaces. The “d” object here is the DCCCommandExecuter type, which you can see in the documentation.

d.PauseAllWorkspace() d.ContinueAllWorkspace() d.PauseWorkspace("<ws-name>") d.ContinueWorkspace("<ws-name>")

 

You may use other objects as well; the context for “c,” for example, gives you a lot of features.

Any exception will prevent the rest of DCC from running. To handle exceptions, use TryRunLine

d.TryRunLine(d.PauseAllWorkspace())

 

 

Variables

d.SetVariable(..), or d.GetVariable(..) you can set and reuse values.

d.SetVariable("TOKEN";@"abc......") .. d.CallService(string.Concat(".... ",d.GetVariable("TOKEN"),"...") ..

Run DCC from a Batch File

You may run a DCC in a batch file

some batch commands .. start a.dcc ..

 

 

You may pass parameter to a dcc file. Use the following way to do that. aaçdcc assumed to be in the same path with the batch file.

 

.. start "" geodi.exe "%~dp0aa.dcc" message="your message" param1="param" param2="param2" // the values can be used with d.GetVariable("message") or d.GetVariable("param1")

 

Run a Batch file from a DCC

.. d.ShellExecute("abc.bat","param1 param2") ..

 

Errors

If the DCC has a syntax error or is terminated with an error, A txt file named <dccname>-error.txt is created. Always check the error file.

 

 

Using full C# in a DCC

You may use c# in any place.

d.ShowMessage(d.GetTotalRAM().ToString())

 

Saving a service result

d.CallService(...).ToCopy(...)

 

If you need loops or more complicated constructs, start with “/” and write your code as usual

/for (int i = 0; i < 5; i++) { d.ShowMessage(i.ToString()) }

 

/int ii=5; ... ; return ii;

 

Background DCC tasks

Some DCC commands may take time to complete. These tasks run in the background and can be monitored on the GEODI Manager page under project status.