{"action":"closed","issue":{"url":"https://api.github.com/repos/yawlfoundation/yawl/issues/268","labels_url":"https://api.github.com/repos/yawlfoundation/yawl/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/yawlfoundation/yawl/issues/268/comments","events_url":"https://api.github.com/repos/yawlfoundation/yawl/issues/268/events","html_url":"https://github.com/yawlfoundation/yawl/issues/268","id":97857090,"number":268,"title":"ytimertype validation error","user":{"login":"yawlfoundation","id":13515110,"avatar_url":"https://avatars.githubusercontent.com/u/13515110?v=3","gravatar_id":"","url":"https://api.github.com/users/yawlfoundation","html_url":"https://github.com/yawlfoundation","followers_url":"https://api.github.com/users/yawlfoundation/followers","following_url":"https://api.github.com/users/yawlfoundation/following{/other_user}","gists_url":"https://api.github.com/users/yawlfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/yawlfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yawlfoundation/subscriptions","organizations_url":"https://api.github.com/users/yawlfoundation/orgs","repos_url":"https://api.github.com/users/yawlfoundation/repos","events_url":"https://api.github.com/users/yawlfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/yawlfoundation/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yawlfoundation/yawl/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/yawlfoundation/yawl/labels/Component-Engine","name":"Component-Engine","color":"ededed"},{"url":"https://api.github.com/repos/yawlfoundation/yawl/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/yawlfoundation/yawl/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-29T04:35:12Z","updated_at":"2015-07-29T04:35:21Z","closed_at":"2015-07-29T04:35:21Z","body":"```\nEnclose the spec. Already discussed with Michael:\n\n<trigger>OnEnabled</trigger><expiry>{if (1<0) then 'PT10S' else\n'PT20S'}</expiry>\nto a ytimetype variable. Catalina.out returns:\n2009-02-20 13:46:44,848 [INFO ] ResourceManager      :-    checkout\nsuccessful: 10:A_3\n2009-02-20 13:46:44,939 [ERROR] ResourceManager      :- Automated task\n'10.1:A_3 could not be successfully completed. Result  message:\n<failure><reason>BAD PROCESS DEFINITION. Data extraction failed schema\nvalidation at task completion.\nTask [A_3]\nXQuery [<timeout><trigger>OnEnabled</trigger><expiry>{if (1<0) then 'PT10S'\nelse 'PT20S'}</expiry></timeout>] \nDocument [<A>\n  <number>4</number>\n</A>]\nSchema for Expected [<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" />]\nBut received [<timeout>\n  <trigger>OnEnabled</trigger>\n  <expiry>PT20S</expiry>\n</timeout>]\nValidation error message [Error: 5:73: src-resolve: Cannot resolve the name\n'YTimerType' to a(n) 'type definition' component.\n]</reason></failure>\n[13:53:24] Michael Adams: looking...\n[13:56:49] … looks like the task is not mapping the data back to the net as\ndefined. Maybe something to do with output params?\n[13:56:58] … you may have to send the spec\n[13:57:01] Stephan Clemens: btw. it happens also when I do not put a\ncondition but just PT20S between <expire> tags\n[13:57:15] Michael Adams: ok\n[13:57:21] … i'll check itout\n[14:28:56] … ok - this is a subtle bug\n[14:30:16] Michael Adams: what is supposed to happen is that when a model\nuses a YTimerType, its definition is inserted into the data definition spec\nfor the schema\n[14:31:39] … it assumes that, since timers are task oriented, the\ndeclaration will be in a task (somewhre in the net)\n[14:31:59] … but in this case, it is only used at net level (which is quit\nunusual)\n[14:32:02] … quite\n[14:32:13] … i can work on it later\n[14:32:18] … but as a workaround\n[14:32:42] Michael Adams: just add a dummy var of YTimerType to any task in\nthe net\n[14:33:14] Stephan Clemens: Shall I make an issue out of this?\n[14:33:20] … google code\n[14:33:39] Michael Adams: for completeness, i think you should\n```\n\nOriginal issue reported on code.google.com by `stephan....@googlemail.com` on 20 Feb 2009 at 4:39\n\nAttachments:\n* [testH.yawl](https://storage.googleapis.com/google-code-attachments/yawl/issue-268/comment-0/testH.yawl)\n"}}