Jump to: navigation, search

Changes


Activity:WriteLogEntry (Activity)

1,744 bytes added, 16:21, 13 March 2014
Created page with "{{ActivityInfoBox | title = Write Log Entry | name = WriteLogEntry | image = | imagecaption = Activity WriteLogEntry | purpose = Write a log entry via the {{UBIK}} logging me..."
{{ActivityInfoBox
| title = Write Log Entry
| name = WriteLogEntry
| image =
| imagecaption = Activity WriteLogEntry
| purpose = Write a log entry via the {{UBIK}} logging mechanism
| category = Logging
| returns = True if successful
| version = 2.3+
}}
The WriteLogEntry Activity writes a log message to the {{UBIK}} logging mechanism.




==Arguments==

{| class="wikitable sortable" | width = "50%"
|-
! Argument!! Type !! Direction !! Purpose
|- align="left"
| UBIKObject|| BaseClass || In || A UBIK object
|- align="left"
| LogId|| Integer || In || A user defined id to use for this log entry
|- align="left"
| Text || String || In || The message text to be written in the log entry
|- align="left"
| Title || String || In || The title of the log entry
|- align="left"
| Result|| Boolean || Out || Returns True on success, false on error
|}

==Usage==

This activity is typically used to write informations to a log file to document certain events like failures together with object properties etc. during the execution of a workflow.

{{Hint|Once your workflow runs smoothly, consider removing frequently appearing log entries you needed during the design phase. Please be aware that the intense use of log output needs system resources and can generate confusing amounts of information!}}

==Example==

Output the number of MetaClasses that derive (direct and indirect) from the MetaClass of a given 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>
|}

==See also==
* [[Workflow Designer]]

[[Category:Workflows]] [[Category:Activities]]
681
edits