Hi,
I used a transient value in my CDT's, I able to see all the values while i am debugging the process model except the transient value, can you guys please help me with this issue. I did not get any errors but still, I am not getting the value their
I able to see the value in my interface in both the CDT's
Discussion posts and replies are publicly visible
Hi mamathak0001,
Did you track the changes in the variable using Process History view? This might help you to find the issue at the process level. Or, if the process history doesn't have this value, then the change may occur in your interface when you click on any submit button.
thank you Selvakumar Kumarasamy,I able to see the values in the process history but Y those values r not storing in the process variable may know the reason please
If you're able to see it first, then the value might have been overridden in the process flow. Have you traversed through all the updates done to that variable?
I did not do any update to that particular variable, I updated only the audit fields.
If possible, can you please share the screenshots of your process history view?
sure
Can you please share the other screenshots as well? If you can scroll down, you can see the changes made to the variable by the process
yes
mamathak0001
I think the issue is in your Write to Data Store Entity Node. It's clearly visible that the variable has the value in your script task & after the Write to DSE node the variable value is overridden. I suggest you to check the inputs& outputs tab of this node.
Since the value in your list variable is null, it is being updated as null in your other variable as well.
thank you so much, it helped me
as you suggested I checked the inputs and output tab I unable to find the error will you please check sorry for asking you again
No worries! Just a couple of questions from my end:1. Is the value stored in the database correctly?
2. Is the XSD mapping done correctly in the CDT? Is the datastore published with the recent version of the CDT?
please don't mind if I am wrong
1.I am not using the transient value in the database it is only up to my database entity as per my requirement
so I am using the XSD code as
<xsd:element name="mappingKey" nillable="true" type="xsd:int"> <xsd:annotation> <xsd:appinfo source="appian.jpa">@Transient</xsd:appinfo> </xsd:annotation> </xsd:element>
2.yes it is done correctly and published with recent version of the CDT only
Oh okay, sorry I forgot about that transient. Now I got the issue. The output of the node stores the value that it got from the database as a result of the write operation.
So in your case, the transient value will not be there in the database. Hence null is stored in the CDT.
If your use-case is just to store the primary key in the variable, then I would suggest creating a new output mapping like - index(ac!storedValues,"listingId",null()) & into the respective field of the CDT.
then mapping key value will be empty right in the variable tab right.