Service Task is an automatic task which gets triggered in the Process flow. It is used to execute the Business Logic which is defined through Application Rule of Execution Rule type. For more information on configuring Application Rule, see Application Rule section.
Service Tasks are typically used to invoke External Model Service through Rest API, External Java APIs, Stored Procedures, and Functions.
More detailed explanation of invoking external model service is available in How to invoke External Model through Web Service section.