2022.2

Table Of Contents
Input plugin preferences 2" on page666 and "NodeJS Server Input plugin preferences 3" on
page666.
2. In order to serve resources that come from the Connect Server the ppNode service needs to
know the credentials and communication protocol to use for communication to the Connect
Server.
These must be entered in a file named default.js that is by default found in C:\Program Files
(x86)\Objectif Lune\ppnode\src\constants\.
Find the following line:
export const DEFAULT_CONNECT_CREDS:{ auth: string; protocol: string } =
{ auth: "ol-admin:secret", protocol: "http" }; //Default user/pass and
protocol for the Connect Server
Enter the credentials and protocol (either http or https) in the auth and protocol entries.
Once the file has been changed, the ppNode service needs to be restarted for the change to take
effect.
Note: Although Workflow can serve both static and dynamic resources to a web browser, it is not
meant to be used as a fully featured web server as it is not built for responsiveness nor guar-
anteed uptime. It is recommended to use a common web server (for example, IIS or Apache) to
serve your contents and to let Workflow process things only it can do.
For more information on how to serve HTML and PDF generated by Connect through IIS, watch
the Connect with Evie - IIS series.
Note: While you can insert the NodeJS Server Input task anywhere in your process as a sec-
ondary input task, in reality the NodeJS Server Input task will only function when used as the ini-
tial input, as it is triggered when Workflow's NodeJS Server receives a request and passes it on
to the correct task.
Caution: It is highly recommended to make all processes using the NodeJS Server Input task
self-replicating and to reduce their polling interval in the "Process properties" on page724.
Note: The NodeJS Server Input plugin is not compatible with PlanetPress Capture.
Input
The NodeJS Server Input task does not, by itself, capture any files. Neither does it directly wait for
requests to be received. Actually, it is the NodeJS service that receives the requests and places them
in a specific location on the drive. When a request is received, the NodeJS Server Input polls that loc-
ation and finds the requests and all attachments. It will always pick up the "oldest" request received
first.
Page 329