Sending a Message to LINE in the Middle of Workflow

HI, Questetra users! I’m HATANAKA, Questetra CTO.

Today, I would like to introduce an Add-on which a part-timer has developed.

Sending a Message to LINE in the Middle of Workflow

It is an Add-on for sending a message to LINE using LINE Notify. LINE Notify is a service that conveys notifications from web services as a message from the official account “LINE Notify” provided by LINE.

To send LINE message, it is necessary to obtain a personal access token from LINE Notify beforehand. The destination of a message is chosen out of the group where the user is joining or the user him or herself when obtaining the token. That is, the token includes the information about the destination. By the way, the token is OAuth 2.0 token.

Now, it is about how to acquire a personal access token. After logging in to LINE Notify with your LINE account, you will get a token by clicking on “Generate access token (For developers)” at the lower part of “My Page”.

Excuse me for what I obtained was “a token for developers”. This is because of the situation on the Questetra side. It works enough. Now, all you have to do is create a Workflow App on Questetra and run a Process.

I created a simple Workflow App. Its outline is as follows.
A message body is entered at “Input message”, and then it is sent at the Service Task “LINE Notify”.
The “LINE Notify” is the Add-on I am introducing to you now.

To place “LINE Notify” on the App, you need to import the Add-on in advance.
Refer to the document below for how to import an Add-on.

M415: Adding an Auto-Step to be Used for Business Process Definition

Below is the Editing permissions on Data Items at each Step.
It is so simple that it has only one Step.

Data Item name Data type Required Message body
Subject String type single line no Editable
Message body String type multiplelines Yes Editable

Lastly, it is the configuration of “LINE Notify”, the Add-on config.

Config item Setting
C1. access token Enter the access token you have obtained at LINE Notify
C2. Text Message


#{data['0']} expresses the Data Item of “Message body”. Both of “Subject” and “Message body” are included in the message.

When you run a Process on this Workflow App, the message you entered in “Message body” is delivered from LINE as it is. This screen dump is for the case where the destination is the LINE user himself.

As a specification of Line, messages can only be sent to people who are friends to the user who acquired the token. Therefore, it can be used only as “notification means within the organization”. Probably, you can use it for simultaneous notification to the internal company when some sort of event happened.

That’s it, for today. See you around.

%d bloggers like this: