Hello Ivy Team, we use one field with type DateTime in result by Web Service Process start. If there is null in this field, we receive always initialized Value

 <result>
            <exportTimestamp>0001-01-01T00:00:00+01:00</exportTimestamp>
 </result>

What is wrong on it?

I would expected, the section exportTimestamp would not be created (similar like with Type String).

Thank you for response in advance.

asked 30.05 at 04:07

tauser's gravatar image

tauser
11111315
accept rate: 50%

edited 30.05 at 09:27

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
7.1k11342


0001-01-01T00:00:00+01:00 reflects the 'auto initialized' value of DateTime objects.

You can filter these values if you do it in the generated WebServiceProcess-Pojo:

  1. Copy the generated WebServiceProcess implementation from src_wsproc into your own src directory. From now on the source will not be re-generated on service changes in the process. Take care to keep the service interface in sync manually...
  2. Now add a simple IF statement that filters auto-initialized values. E.g. if (IvyDefaultValues.isDefaultObject(exporTs))

alt text

link

answered 01.06 at 03:23

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
7.1k11342
accept rate: 70%

edited 01.06 at 06:01

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×37

Asked: 30.05 at 04:07

Seen: 100 times

Last updated: 01.06 at 06:01