Difference between revisions of "Activity:DebugMessage (Activity)"
(→See also) |
|||
| Line 38: | Line 38: | ||
==Example== | ==Example== | ||
| − | == | + | Output the number of derivates of the MetaClass of a certain object. |
| − | + | ||
| + | |||
| + | {| class="wikitable" | width = "50%" | ||
| + | |- | ||
| + | ! Argument!! Value | ||
| + | |- align="left" | ||
| + | | UBIKObject|| Connect this argument with a variable | ||
| + | |- align="left" | ||
| + | | Text || <source lang = "vbnet">"UBIKObject.MetaClass.AllDerivates.Count.ToString()"</source> | ||
| + | |} | ||
| + | |||
| + | ==Additional information== | ||
[[Category:Workflows]] | [[Category:Workflows]] | ||
Revision as of 12:12, 19 July 2013
The DebugMessage Activity writes a string to the UBIK® debugging service, which is i.e. displayed in the Code- and Workflow Debugger.
| Debug Message | |
|---|---|
| Name | DebugMessage |
| Purpose | Output a string to the debug window |
| Category | Debugging |
| Returns | True if successful |
| Version | 2.1+ |
Arguments
| Arguments | Type | Direction | Purpose |
|---|---|---|---|
| UBIKObject | BaseClass | In | A UBIK object |
| Text | String | In | The text to be written |
| Result | Boolean | Out | Returns True on success, false on error |
Usage
This activity is typically used to output debug information like variable values, object properties etc. during the execution of a workflow.
| Once your workflow runs smoothly, consider removing the DebugActivities you used during design. They are lean but they still consume resources! |
Example
Output the number of derivates of the MetaClass of a certain object.
| Argument | Value |
|---|---|
| UBIKObject | Connect this argument with a variable |
| Text | "UBIKObject.MetaClass.AllDerivates.Count.ToString()" |
