Using the Python Language on EPM Processor

<< Clique para Mostrar o Sumário >>

 

Using the Python Language on EPM Processor

A developer of solutions for EPM Processor can use any functions and libraries in Python language, as long as the output or result of that source code is compatible with an execution as a service, that is, without a visual interface.

For a method written in Python language to become a task executed by EPM Processor, it must have the following syntax.

import epmprocessor as epr
@epr.applicationMethod("MethodName")
def method_name(session, param1, param2=2):
  """DocString for documentation"""

 

The first line executes the import instruction from the epmprocessor library

The second line uses a decorator from the epmprocessor library, which must receive a parameter with a string data type, the name of the method exposed on the platform

The third line creates a user's method with the input parameters needed

The fourth line is a docstring instruction for documentation, which can then be checked later in EPM Processor Workbench. Please check the next topic for more information

Esta página foi útil?