Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WPORTAL and version 21.1

Cron Job Data Sheet Overview

Image RemovedImage Added

If you use the the icon button, an empty cron job data sheet opens.

The data sheet contains the basic data of a cron job:

  • Name
  • Pattern
  • Internal contextContext
  • Service
  • Event
  • Activate job after savingJob After Saving
  • Execute job after savingJob After Saving
  • Payload

How to Create a

New

Cron Job

Enter a Name for the job.

The options for the Internal context . choose No (default)

Image RemovedImage Added

To create a new cron job, you have to click on the Image Removed iconiconImage Addedon the cron manager start page. Image Removed

Image Added

An empty cron job data sheet opens. In this data sheet you must fill the following fields:

  • Name
  • Pattern
  • Internal context
  • Service
  • Event
  • Activate job after saving
  • Execute job after saving
  • Payload

Image Removed

Image Added

Name

Enter a name for the job in this field.

Image Added

Image Removed

Multiexcerpt

Multiexcerpt include
SpaceWithExcerptINTERNAL

MultiExcerptNamecron_pattern

You can enter a six-digit Pattern. If you use only five digits, the seconds are omitted.

The pattern defines the schedule of the job. Using the correct pattern, you can determine whether the job should be executed at fixed times, dates, or intervals.

Formatting of the Pattern:

  • Separate the individual digits by spaces.
  • You can use * as a wildcard.
  • The following order applies to the input:

Image Removed

Tip
titleFrequently Used Patterns
  • Every minute: * * * * *
  • Every second: * * * * * *
  • Every midnight: 0 0 * * *
  • All 15 seconds, but only on sundays: */15 * * * * 0
  • Every minute between 17:30 and 17:45: 30-45 17 * * *
  • Mondays to fridays at 01:20 and 01:30: 20,30 1 * * 1-5

DisableCachingtrue
PageWithExcerptINTERNAL:_admin_portal_excerpts

Image Added

Internal Context

Available options

Image Removed

are Yes and No (default)

:

  • If you
  • keep the default No , the job will be executed in the user context of the logged-in user.
  • If you choose Yes, the job will be executed in the internal context without user data.

Image Removed

Enter the appropriate Service in this field.

Example: model-execution-service is used to execute EPC models.

Image Removed

Enter the name of the function.

Example: executeModel is used if an EPC is to be executed.

Image Removed

The Activate job after saving field allows you to activate the job directly.

  • Choose option Activate to activate the job when it is created.
  • If you choose Don't activate (default), the job remains deactivated until you activate it manually (see page Editing a Cron Job for details).

Image Removed

The Execute job after saving field allows you to initiate the first execution of the job regardless of the pattern.

  • If you choose Execute, the job will be executed initially after its creation - regardless of the defined pattern. The second execution is then based on the pattern.
  • If you select Don't execute (default), the execution will be based directly on the pattern if the job is activated.

Image Removed

Multiexcerpt
MultiExcerptNamecron_payload

In this field you have to enter your service request. The Payload must contain a valid JSON.

Example:

Code Block
{
	"modelId": "rp2562b60a-a4fe-4c97-b27a-43faa027d170",
	"pr": "e1e4c500-07b0-12e8-9cfa-7becc0a3e857"
}

Use the indicator on the lower right side of the frame to enlarge the payload field:

Image Removed

Image Added

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamecron_service
DisableCachingtrue
PageWithExcerptINTERNAL:_admin_portal_excerpts

Image Added

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamecron_event
DisableCachingtrue
PageWithExcerptINTERNAL:_admin_portal_excerpts

Image Added

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamecron_activate_after_saving
DisableCachingtrue
PageWithExcerptINTERNAL:_admin_portal_excerpts

Image Added

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamecron_execute_after_saving
DisableCachingtrue
PageWithExcerptINTERNAL:_admin_portal_excerpts

Image Added

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamecron_payload
DisableCachingtrue
PageWithExcerptINTERNAL:_admin_portal_excerpts


Image Added

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamecron_payload_editor
DisableCachingtrue
PageWithExcerptINTERNAL:_admin_portal_excerpts

Image Added

If you have completed your input, create the cron job: Press Image Added

Image Removed

You can save the completed data sheet by clicking the Image Removed icon.

Your cron job is created and added to the job list.

The job is displayed with a blue frame if you activated it.

Tip

Use the button Click icon Image Modified to deactivate the job.

Image RemovedImage Added

A grey frame indicates that the job is not activated.

Tip

Use this button Click icon Image Modified to activate the job.