# How to set a workflow state value using OSLC Java API in DNG?

**URL:** <https://forum.open-services.net/t/how-to-set-a-workflow-state-value-using-oslc-java-api-in-dng/331>\
**Category:** OSLC implementations\
**Created:** [November 18, 2019, 2:30pm UTC](https://forum.open-services.net/t/how-to-set-a-workflow-state-value-using-oslc-java-api-in-dng/331 "2019-11-18T14:30:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbarreno](https://forum.open-services.net/letter_avatar_proxy/v4/letter/f/a88e57/32.png) [@fbarreno](https://forum.open-services.net/u/fbarreno)\
**Post date:** [November 18, 2019, 2:30pm UTC](https://forum.open-services.net/t/how-to-set-a-workflow-state-value-using-oslc-java-api-in-dng/331/1 "2019-11-18T14:30:48Z")

</div>

Hello,  
I have a workflow state value. This value is contained in a URI that represents its state value.  
How can I update a workflow state value in dooors next generation?

My code:/…

requirement.getExtendedProperties().put(qname, “[http://www.ibm.com/xmlns/rdm/workflowNavantia#Navantia.state.s5”](https://slack-redir.net/link?url=http%3A%2F%2Fwww.ibm.com%2Fxmlns%2Frdm%2FworkflowNavantia%23Navantia.state.s5%E2%80%9D&v=3));

// Here I can change the state value of my requirement

// But when I try update requirement  
// Update the requirement

ClientResponse updateResponse = clientdng.updateResource(requirementLocation,  
requirement, OslcMediaType.APPLICATION\_RDF\_XML);

// I cannot update HTML web jazz DNG clientdng.updateResource

Any suggestions on how to set the value to this a workflow state value?

Thanks in advance.
