Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11183

Manage itemStatusId and oldItemStatusId on entity-auto

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Done
    • Trunk
    • None
    • framework
    • None

    Description

      Currently entity-auto manage a service who attendee a statusId  on IN parameter and a oldStatusId on OUT parameter. 

      <service name="updateRequirement" default-entity-name="Requirement" engine="entity-auto" invoke="update" auth="true">
          <description>Update an existing requirement</description>
          <auto-attributes include="pk" mode="IN" optional="false"/>
          <auto-attributes include="nonpk" mode="IN" optional="true"/>
          <attribute name="oldStatusId" type="String" mode="OUT" optional="true"/>
      </service> 
      

      I propose to extend this logic to itemSatusId

      <service name="updatePicklistItem" default-entity-name="PicklistItem" engine="entity-auto" invoke="update" auth="true">
           <description>Update PicklistItem</description>
           <permission-service service-name="facilityPermissionCheck" main-action="UPDATE"/>
           <auto-attributes include="pk" mode="IN" optional="false"/>
           <auto-attributes include="nonpk" mode="IN" optional="true"/>
           <attribute name="oldItemStatusId" type="String" mode="OUT" optional="true"/>
      </service>

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nmalin Nicolas Malin
            nmalin Nicolas Malin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment