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
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.
Hi mamathak001,
Hope this might be helpful,
Use a script task ,
create a new custom output , in the expression editor , use this code
Expression: repeat(count(pv!ammenities),pv!list.listingId)
saveInto : pv!ammenities.listingIdFk
Process Flow:
1 Write to DB (list)
2. Script Task (in the Data , create a new custom output and use the above code)
3. Write to DB (ammenities)