Difference between revisions of "CreateTask"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
[[Category:Task_Functions]]
+
{{HelpFiles}}  
{{HelpFiles}}
+
 
 +
===== createTask =====
 +
 
 +
Creates a new task using default task resource template and assign Manager role to the responsible resource, returns the new task's UniqueId.
 +
 
 +
'''Syntax'''
  
=====createTask=====
+
createTask(''taskName, parentUniqueId, responsibleUniqueid, description'')
  
Creates a new task using default task resource template and assign Manager role to the responsible resource, returns the new task's UniqueId.
+
'''Arguments'''
  
'''Syntax'''
+
*''taskName'': Is a string expression. It is the name of the new task.
 +
*''parentUniqueId'': Is a numeric (non-decimal) expression. It is the UniqueId of the parent resource.
 +
*''responsibleUniqueId'': Is a numeric (non-decimal) expression. It is the UniqueId of the responsible resource. It can be empty meaning that no responsible person will be set and task is not yet assigned.
 +
*''description'': Is a string expression. It is the description of the new task.
  
createTask(''taskName, parentUniqueId, responsibleUniqueid, description'')
+
'''Return type'''  
  
'''Arguments'''
+
number : the resource id of the new created task
  
* ''taskName'': Is a string expression. It is the name of the new task.
+
'''Examples'''  
* ''parentUniqueId'': Is a numeric (non-decimal) expression. It is the UniqueId of the parent resource.
 
* ''responsibleUniqueId'': Is a numeric (non-decimal) expression. It is the UniqueId of the responsible resource. It can be empty meaning that no responsible person will be set and task is not yet assigned.
 
* ''description'': Is a string expression. It is the description of the new task.
 
  
'''Return type'''
+
''//create a new task''  
  
number : the resource id of the new created task
+
''number a = createTask("TaskCreateTest", 104371, 25455, "Testing task create method");''
  
'''Examples'''
+
''print(a); //Returns the resource id of the new created task''
  
''//create a new task''
+
''number b = createTask("TaskCreateTest", 104371, empty, "Testing task create method");''
  
''createTask("TaskCreateTest", 104371, 25455, "Testing task create method");''
+
''print(b); //Returns the resource id of the new created task ''
  
''or createTask("TaskCreateTest", 104371, empty, "Testing task create method");''
+
'''Availability'''  
  
''//return: 2188468''
+
Version 5.4
  
'''Availability'''
+
= == =
  
Version 5.4
+
__NOTOC__ <!-- imported from file: 694.htm-->
  
====
+
[[Category:Task_Functions]]
__NOTOC__
 
<!-- imported from file: 694.htm-->
 

Revision as of 06:12, 23 December 2011



createTask

Creates a new task using default task resource template and assign Manager role to the responsible resource, returns the new task's UniqueId.

Syntax

createTask(taskName, parentUniqueId, responsibleUniqueid, description)

Arguments

  • taskName: Is a string expression. It is the name of the new task.
  • parentUniqueId: Is a numeric (non-decimal) expression. It is the UniqueId of the parent resource.
  • responsibleUniqueId: Is a numeric (non-decimal) expression. It is the UniqueId of the responsible resource. It can be empty meaning that no responsible person will be set and task is not yet assigned.
  • description: Is a string expression. It is the description of the new task.

Return type

number : the resource id of the new created task

Examples

//create a new task

number a = createTask("TaskCreateTest", 104371, 25455, "Testing task create method");

print(a); //Returns the resource id of the new created task

number b = createTask("TaskCreateTest", 104371, empty, "Testing task create method");

print(b); //Returns the resource id of the new created task

Availability

Version 5.4

==