Skip to main content

Using Run Component tool

The iCore Run Component tool lets you execute a Component definition – a Script, an Adapterflow or a Workflow – on an iCore machine without interfering with the running system. For more information, see Run Component tool - Introduction.

User profile

When you test Components in the Run Component tool, the tool will use the Windows profile of the currently active user. When you run the Component in the context of a Job in iCore Process Server (i.e. the iCore system), the service user will be used (with its own user profile). Settings such as regional settings may differ between Run Component tool and the iCore system. To make sure that the result in the Run Component tool is the same as in the iCore system, you need to verify the output.

Example Date/Time format

The following SQL db query will return date "2022-08-08" when running Run component tool, since the Windows profile has the Swedish regional settings. However, the returned date would be "08/08/22" when running as the iCore system service user.

SELECT
[DeliveryWindow1]
FROM [dbo].[Master Data Company$B2B_ProductShipmentDates_PIL$e492ce07-72ce-497e-9b97-cb81f6a9f2cb] WHERE [StyleNumber] = '2300'

To get the same output from both users, you need to set the output format in the SQL query.

SELECT
FORMAT ([DeliveryWindow1], 'yyyy-MM-dd') as DeliveryWindow1,FORMAT ([DeliveryWindow2], 'yyyy-MM-dd') as DeliveryWindow2,FORMAT ([DeliveryWindow3], 'yyyy-MM-dd') as DeliveryWindow3,FORMAT ([OrderDeadLine1], 'yyyy-MM-dd') as OrderDeadLine1,FORMAT ([OrderDeadLine2], 'yyyy-MM-dd') as OrderDeadLine2, FORMAT ([OrderDeadLine3], 'yyyy-MM-dd') as OrderDeadLine3
FROM [dbo].[Master Data Company$B2B_ProductShipmentDates_PIL$e492ce07-72ce-497e-9b97-cb81f6a9f2cb] WHERE [StyleNumber] = '2300'