/
Environment Configuration

Environment Configuration

Search the IFS Workflow Wiki

Back to Installation and Configuration

 



Environment Configuration

Environment Configuration

Configure Shared Drives

Some workflows benefit from storing files on a network shared drive, so that files can be accessed by users.

To create the shared drive:

  1. To create a new group, at a command prompt, type:

$ sudo groupadd -g 6000 sharewindow

2. To add users to the group, type the following command:

$ sudo usermod -G sharewindow -a centos

3. Rerun line 2 and change centos to apache and then rerun for Process Maker.

4. To create a new directory, type the following command:

$ sudo mkdir /mnt

5. To change the owner of the new directory, type the following command:

$ sudo chown -R centos:sharewindow /mnt

6. To navigate to /mnt, type the following command:

$ cd /mnt

7. To create a new directory, type the following command:

$ mkdir workflow

8. To change the group owner on new folder, type the following command:

$ chgrp -R sharewindow /mnt/workflow

9. To change permission on the workflow directory, type the following command:

$ chmod -R g+swrx /mnt/workflow

10. To modify the fstab file, type the following command:

$ sudo vi /etc/fstab

11. Add the following lines to the fstab file:

//windowshare/sharefolder /mnt/workflow cifs username=windowsuser,password=windowsuserpassword,rw,users,uid=1000,gid=6000, forceuid,forcegid,file_mode=0777,dir_mode=0777 0 0

12. To save the changes, press Esc, type :wq and then press enter.

13. To mount the drive, type the following command:

$ sudo mount -a


For more information on utilizing the shared drive in a workflow, see Exporting documents to shared drive.

Configure CRON

CRON scripts allow timed events to occur in IFS Workflow. To enable timed events, the CRON scripts need to be configured. For more information, see the ProcessMaker Configure Crontab documentation.

Configure External API Table

The External API Table is a table that can be used to configure API endpoints and the credentials for accessing the API's in the Workflow. The main API record that should be in this table is for IFS AppLink, but you may configure any other API endpoint that you may need to use in your workflow. When this table is configured with OAuth credentials, the API Token Update workflow is designed to refresh the authentication token every 24 hours for easy usage in a workflow needing authenticated requests.

The two required fields are: (can be used with or without security)

  • API ID (Required): The ID value for the API Endpoint that is referenced in the Workflow. Example: "EU", or "IFSAppLink"

  • API URL (Required): The server endpoint where the product API is installed. Example: "http://host.IFS.com:8000"

If you have Oauth security enabled on the API endpoint you are configuring, then you will need to populate the following fields.

  • Authorization Audience: The Identifier for the API you are trying to communicate to. Example: "https://IFSapplink.IFS.com/" - This Audience will be used for all IFS API'sAuthentication Endpoint URL: This is URL for the Oauth security provider that your Client account has been created through. Example: "https://IFSes-iam.auth0.com/"

  • Client Identifier: An identifier provided by the security provider that represents a single organization.

  • Client Secret: The secret is included for authenticating the Client against the security provider.

Set IFS Reporting Credentials

This is just temporary workflow until we get AppLink up and running and AppLink can handle the Authentication.

We currently have a row in the API_EXTERNAL where AppId = P2Reporting.  For IFS Reporting to function correctly, the following must be populated:

  • Api Url

  • Current Authentication Token

To make this easier, a new temporary workflow has been created, called Set IFS Reporting Credentials. This is a simple workflow that will update the Authentication Token with a unique value. The value is built on:

  • Username

  • Tennant

  • ID Password

Note: Running this workflow will override any existing Authentication Token.

 




Copyright© 2024 IFS AB. Copying prohibited. All rights reserved.