Skip to content

Commit 193f550

Browse files
authored
fix(samples/workflow): honor openidm.context.path in Accept Notice script (#178)
1 parent 29f133a commit 193f550

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

openidm-zip/src/main/resources/samples/workflow/workflow/contractorOnboarding.bpmn20.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
information: "Portions Copyrighted [year] [name of copyright owner]".
1414
1515
Copyright (c) 2011-2015 ForgeRock AS. All rights reserved.
16+
Portions Copyright 2026 3A Systems, LLC.
1617
-->
1718
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="Examples" id="definitions" xsi:schemaLocation=" http://www.omg.org/spec/BPMN/20100524/MODEL http://local.openicf.forgerock.org/BPMN20.xsd">
1819
<process id="contractorOnboarding" name="Contractor onboarding process" isExecutable="true">
@@ -98,8 +99,12 @@
9899

99100
// Automatically send the user a password reset email
100101
// Current limitation with supplying locale via http headers requires the call to be made via http
102+
def openidmContextPath = identityServer.getProperty('openidm.context.path', '/openidm')
103+
if (!openidmContextPath.startsWith('/')) {
104+
openidmContextPath = '/' + openidmContextPath
105+
}
101106
openidm.action("external/rest", "call", [
102-
"url": "https://localhost:"+identityServer.getProperty('openidm.port.https')+"/openidm/selfservice/reset?_action=submitRequirements",
107+
"url": "https://localhost:"+identityServer.getProperty('openidm.port.https')+openidmContextPath+"/selfservice/reset?_action=submitRequirements",
103108
"method": "POST",
104109
"headers": [
105110
"Content-Type": "application/json",

0 commit comments

Comments
 (0)