How to create Custom Activity in Workflow

Vijayakumar
Kilo Contributor

In Workflow editor, we can see 2 activities 

1. Core Activity

2. Custom activity, so how to create custom activity, so that I can use that in my workflow.

10 REPLIES 10

Are you working on PDI? If Yes then try to activate the plugin Orchestration.

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/product/orchestration/task/t_Act...

-Hemant

Megha Padale
Giga Guru

Hi Vijaykumar,

In addition to Hemant, you can create new cutsom workflow activity in activity definitions module

navigate to-> activity definitions->new

find_real_file.png

If my answer helped you in any way, mark answer as helpful and correct.

Thanks and regards,

Megha.

DirkRedeker
Mega Sage

Hi

You can create your own custom Workflow Activities by navigating to:

> Workflow > Administration > Activity Definitions

It's a bit chunk of knowledge, that you need to know for implementing your own WOrkflow Activities.

You need to learn a bit about the lifecycle and events that the Workflow engine is using to advane workflows.

You may need the following page on Docs Online as a good information on that:

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/workflow-administrati...

 

Let me know if that answers your question and mark my answer as correct and helpful

BR

Dirk 

Hi Megha,

Unable to use templates when I add through activity definitions->new option, also it is created under Core Activity not in Custom Activity

 

 

Thanks,

Vijay

Hi

Below, you just can see what happened, when I clicked NEW on:

> Workflow > Administration > Activity Definition

I filled in the Form as shown below and clicked on SAVE.

find_real_file.png

For now, I did not change the Script (on the Script TAB) at all.

 

After Saving, the new Workflow Activity will be available immediately in the Workflow Editor (see screenshot below).

It is correct, that the new Activity appears mainly under the "CORE" Activities, but it will be "sub-divided" into the Category mentioned (Here "Dirk") 

find_real_file.png

Let me know if that answers your question and mark my answer as correct and helpful.

Enjoy & BR

Dirk