j5 Python Methods References - j5 - 28.0 - Help - Hexagon PPM

j5 BPMN Workflow Configuration

Language
English (United States)
Product
j5
Search by Category
Help
j5 Version
2019

To reference fields from a j5 application created in the IDE:

General Format

Example

self.<field name>

additional_text = " [Approved]" self.report_message += additional_text

To reference values from a logged in j5 user:

General Format

Example

from j5.Web.Server import RequestStack session = RequestStack.request_stack.session username = session.user self.<field name> = username

from j5.Web.Server import RequestStack session = RequestStack.request_stack.session username = session.user self.approved_by = session.user

To reference current datetime values:

General Format

Example

from j5.OS import datetime_tz var = datetime_tz.datetime_tz.now() self.<field name> = var

from j5.OS import datetime_tz var = datetime_tz.datetime_tz.now() self.approved_on = var