==========
on_created
==========

on_created(task)

**domain**: server

**language**: python

**class** :doc:`Task class </refs/server/task_api>`

Description
===========

Use ``on_created`` to initialize the application on the server side.

The event is triggered when the project 
:doc:`task tree </programming/task_tree>`
has just been created. See
:doc:`Workflow </programming/workflow>`

The ``task`` parameter is a reference to the 
:doc:`task tree </programming/task_tree>`


.. note::

	The execution time of the code in this handler must be very short because of 
	detrimental effects to the end user's experience. 
	
Example
=======

.. code-block:: py

    def on_created(task):
        # some code

See also
========

:doc:`Workflow </programming/workflow>`

:doc:`Task tree </programming/task_tree>`

