What is the difference between REQ, RITM and tasks?

gunishi
Tera Guru

Hi there, 

 

I am struggling with the difference between REQ records, RITM records and STASK records. 

 

The thing that is stumping me the most is which is referenced when I am using workflows. When I use a run script activity and type current.variables.name_of_variable what does current reference? Is it the overall request, is it the RITM, or a task that this is referring to?

 

I'm asking because I have a lot of variables on the CI order form that I would like to access. So if the user picked a choice of lettuce, I want to create a task that has a short description 'Vegetable - Lettuce'. I am struggling to understand the workflows a lot and also how would I then referene the RITM if this is for the request?

Any help would be much appreicated. Thank you. 

 

Kind regards, 

G

3 ACCEPTED SOLUTIONS

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Best way to think of this is as below:

 

Imagine your Amazon or any other shopping cart

Request -> This is your order ID, this may contain several items you have ordered.

Requested Item -> This is the individual item, One request may contain multiple request Items

SC Task -> This is the individual task that needs to be don't to fulfill each Requested item, like shipping, packaging etc. This is for typically for the fulfiller teams.

 

In your workfow script current would the table workflow is written on (Most likely requested item)

-Anurag

View solution in original post

Jaspal Singh
Mega Patron
Mega Patron

Hi,

So, in simple terms you can relate it to online shopping where

REQ - is your Order number (1 Order number for 10 items ordered suppose)

RITM - is number for each item ordered (10 separate items/products ordered)

SCTask - Delivery time for each RITM (10 products to be delivered by different delivery companies)

For every REQ there will be a corresponding RITM in ServiceNow OOB but having an SCTask for RITM is optional.

 

Now, coming on the 'current' is current record that is submitted. Now, it is REQ or RITM will totally depend on the table workflow is being called. You can check the Properties for the particular table. If it is RITM table then current will be RITM record and if it is REQ it will be REQ record.

View solution in original post

Peter Bodelier
Giga Sage

Hi @gunishi,

 

I always try to explain it as this:

 

The Request can be seen as your shopping bag, it contains everything you have bought.

The RITMS are the items in your shopping bag which you bought.

The sc_tasks are the tasks for the supplier to be able to package your items, and send them to you.

 

For your workflow I think you are mentioning the workflow which is defined in the Catalog Item?
If so, current is your RITM.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

View solution in original post

9 REPLIES 9

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Best way to think of this is as below:

 

Imagine your Amazon or any other shopping cart

Request -> This is your order ID, this may contain several items you have ordered.

Requested Item -> This is the individual item, One request may contain multiple request Items

SC Task -> This is the individual task that needs to be don't to fulfill each Requested item, like shipping, packaging etc. This is for typically for the fulfiller teams.

 

In your workfow script current would the table workflow is written on (Most likely requested item)

-Anurag

Jaspal Singh
Mega Patron
Mega Patron

Hi,

So, in simple terms you can relate it to online shopping where

REQ - is your Order number (1 Order number for 10 items ordered suppose)

RITM - is number for each item ordered (10 separate items/products ordered)

SCTask - Delivery time for each RITM (10 products to be delivered by different delivery companies)

For every REQ there will be a corresponding RITM in ServiceNow OOB but having an SCTask for RITM is optional.

 

Now, coming on the 'current' is current record that is submitted. Now, it is REQ or RITM will totally depend on the table workflow is being called. You can check the Properties for the particular table. If it is RITM table then current will be RITM record and if it is REQ it will be REQ record.

Hi @Jaspal Singh 

 

Thank you for your answer. 

 

So when I created the flow and I specified the table as sc_request, does mean the current, is the RITM? Just for clarification!

 

Kind regards, 

G

No, then the table would be SC Request so current would point to REQ

-Anurag