Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

CreateTask: Difference between revisions

From Catglobe Wiki
jrfconvert import
Β 
No edit summary
Β 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:HelpBooks]]
[Obsolete - please use [[Task_new|Task_new]]. More detail at [[ConversionMethods|ConversionMethods]] ] Β 
ο»Ώ


=====createTask=====
== createTask ==


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


'''Syntax'''
'''Syntax''' Β 


createTask(''taskName, parentUniqueId, responsibleUniqueid, description, taskResourceTemplateId'')
createTask(''taskName, parentUniqueId, responsibleUniqueid, description'') Β 


'''Arguments'''
'''Arguments''' Β 


* ''taskName'': Is a string expression. It is the name of the new task.
*''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.
*''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.
*''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.
*''description'': Is a string expression. It is the description of the new task.
* ''taskResourceTemplateId: ''is a numeric (non-decimal) expression. It is the id of the task resource template.


'''Return type'''
'''Return type''' Β 


number
number : the resource id of the new created task


'''Examples'''
'''Examples''' Β 


''//create a new task''
''//create a new task'' Β 


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


''or createTask("TaskCreateTest", 104371, empty, "Testing task create method", 57);''
''print(a); //Returns the resource id of the new created task'' Β 


''//return: 2188468''
''number b = createTask("TaskCreateTest", 104371, empty, "Testing task create method");'' Β 


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


Version 5.4
'''Availability'''
__NOTOC__
Β 
<!-- imported from file: 3739.htm-->
Version 5.4<br>
Β 
[[Category:Task_Functions]]

Latest revision as of 02:36, 13 May 2022

[Obsolete - please use Task_new. More detail at ConversionMethods ]

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