The PTC Community email address has changed to email@example.com. Learn more.
i am creating requirements from Java API with a createcontent command. The command succeeds and I can read the ID of the created item with
newID = response.getResult().getPrimaryValue().getId();
I can see the created content in the requirements document, also.
But if a try to find the new item from Java with a command like
im issues --fields=... --queryDefinition=...
the item is not found when the command is run soon after the createcontent command.
If I stop the java program in the debugger and wait for 30 seconds (or something like that), then the item is found.
Also, if I stop the java program and start it again, then the already existing item is found with the same issues command.
Why is the new created content visible in the document shown by the Integrity client, but is not found by the issues command?
Do I have to flush a cash or something like that? Or release the CmdRunner and create a new one?
Hint: I am using a local integration point with the common session.