title: JBPM Service Task assignments input from config
body: <p>I have JBPM process where I have add Service Task Rest. In the assignments inputs I want to set url through config file and not directly in the source field.</p>
  <p><a href="https://i.stack.imgur.com/pyt4o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pyt4o.png" alt="enter image description here" /></a></p>
  <p>I am researching 3 days but still I cant find it.</p>
  <p>Is there any option to set the url value like this:</p>
  <blockquote>
  <p>http://{ip-address}/{port}/update</p>
  </blockquote>
  <p>As you can see in the example above ip-address and port should be read from a config or property file.</p>
  <blockquote>
  <p>The next part is just to check is everything okay.</p>
  </blockquote>
  <p>Can I achieve the result like this:</p>
  <pre><code>    Config config = new Config();
      
  
      /** Output Variables in a HashMap ***/
      Map&lt;String, Object&gt; resultMap = new HashMap&lt;String, Object&gt;();
      resultMap.put(&quot;Result&quot;, msg); // (&quot;name of variable&quot;, value)
      resultMap.put(&quot;url&quot;, &quot;http://&quot; + config.getProperty(&quot;ip&quot;) + config.getProperty(&quot;port&quot;) + &quot;/update&quot;);
      manager.completeWorkItem(workItem.getId(), resultMap);
  </code></pre>
  <blockquote>
  <p>NEW EDIT</p>
  </blockquote>
  <p>Maybe I wrote it a little bit confusing but like this the whole url need to be in the config and what I want is only ip and port to be read from config and to to write in the source like this manually: http:// (wrote by me manually) + ip : port (read from config) / update (wrote by me manually). So as I wrote above, I want only ip and port values from config. That is why I wrote them as {ipVar}:{portVar} above.</p>
  <blockquote>
  <p>New edit:
  Thank you for the detailed answers. Maybe I am writing it confusing so I will explain this picture:
  <a href="https://i.stack.imgur.com/AAIyH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AAIyH.png" alt="enter image description here" /></a></p>
  </blockquote>
  <p>you see my point was to only get ip and port from config and anything else what user want to write because there can be another endpoints...</p>
  <p>for example:
  http://{ip}:{port}/create/user/bashir
  or
  https://{ip}:8080/asd/update</p>
  <p>I want to get ip and port as variables from config and to use it if I need in some assignment, for this case URL.</p>